Function number_prefix::decimal_prefix
[−]
[src]
pub fn decimal_prefix<F: Amounts>(amount: F) -> Result<F>
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.