math.decimal: rational truncation and rounding

Truncation and rounding of rationals to a specified level of precision.