emath
0.30.0
Module smart_
aim
Constants
Functions
In crate emath
Module
emath
::
smart_aim
Copy item path
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
🔒