Module smart_aim

Source
Expand description

Find “simple” numbers is some range. Used by sliders.

Constants§

NUM_DECIMALS 🔒

Functions§

best_in_range_f64
Find the “simplest” number in a closed range [min, max], i.e. the one with the fewest decimal digits.
from_decimal_string 🔒
is_integer 🔒
simplest_digit_closed_range 🔒
Find the simplest integer in the range [min, max]
to_decimal_string 🔒