Struct float_pretty_print::PrettyPrintFloat [−][src]
pub struct PrettyPrintFloat(pub f64);
Expand description
f64
wrapper to use with formatting code.
See the crate-level doc for details.
use float_pretty_print::PrettyPrintFloat;
assert_eq!(format!("{:4.4}", PrettyPrintFloat(0.00005)), "5e-5");
Tuple Fields
0: f64