Skip to contents

Main API

Reconstruct rounded numbers, or the bounds of the numbers behind them.

reround()
General interface to reconstructing rounded numbers
unround()
Reconstruct rounding bounds

Individual rounding procedures

Each of these can also be reached through reround()’s rounding argument.

Fractions and bias

reround_to_fraction() reround_to_fraction_level()
Rounding to the nearest fraction
rounding_bias()
Compute rounding bias

For package developers

The exact-integer form of unround()’s bounds, the whole-number sums they admit, and the meaning of a "ties_*" string, for building consistency tests on.

bound_numerators()
Rounding bounds as exact integers
sum_range()
Whole-number sums behind a rounded mean
resolve_ties_rounding()
Resolve a "ties_*" rounding string