arithmetic and boolean operations with fractions