Function number_prefix::decimal_prefix
source · [−]Expand description
Formats the given floating-point number using decimal prefixes, returning a result.
This function accepts both f32
and f64
values. If you’re trying to
format an integer, you’ll have to cast it first.