Added
Link Here
|
1 |
Format number with metric prefix. |
2 |
|
3 |
format_metric(14 , {base=>10}); # => "14" |
4 |
format_metric(12000 , {base=> 2, precision=>1}); # => "11.7K" |
5 |
format_metric(12000 , {base=>10, precision=>1}); # => "11.7Ki" |
6 |
format_metric(-0.0017, {base=>10}); # => "1.7m" |
7 |
|
8 |
WWW: https://metacpan.org/dist/Number-Format-Metric |