Readable
Human readable data formatting.
This crate turns various data into human-readable String
's.
Feature flags
Flag | Purpose |
---|---|
serde |
Enable serde on all types |
ignore_nan_inf |
Disable checking f64 's for f64::NAN , f64::INFINITY , and f64::NEG_INFINITY |
Examples
Integers
let a = from;
println!;
> 1,000
Floats
let a = from;
let b = percent;
println!;
println!;
> 1,000.123
> 1,000.12%
Runtime
let a = from;
println!;
> 3:05:11
Time
let a = from_secs;
let b = from;
println!;
> 23 hours, 59 minutes, 59 seconds