chickadee » tween » rationalize

rationalize count value #!optional (epsilon 0)procedure

Sometimes its useful to truncate the number of decimal places a floating point number is exact to. Sometimes it's also useful to do so after applying an epsilon value to smudge for floating point computation errors. This function can perform both operations.

Note that it is *not* a function to force a number to a particular number of significant digits.