human_format 1.2.1

Rust Port of human-format from node, formatting numbers for us, while the machines are still at bay.
Documentation
1
2
3
4
5
6
7
8
9
use human_format::*;

#[test]
fn micro_sign_input_is_accepted() {
    let f = Formatter::new();

    // micro sign input should be accepted and treated as 'u'
    assert_eq!(f.try_parse("1.0 ยต").unwrap(), 1e-6);
}