ufloat
A no_std
compatible library for formatting floating point numbers with ufmt
Formatting a float is now as easy as wrapping it in either the Uf32
or Uf64
struct with the number of decimal places to format to.
use ;
// Format to 3 decimal places.
let a = Uf32;
// Format to 5 decimal places.
let b = Uf64;
The libm
crate is used for math operations.