Format number with metric prefix
Format number with metric prefix. format_metric(14 , {base=>10}); # => "14" format_metric(12000 , {base=> 2, precision=>1}); # => "11.7K" format_metric(12000 , {base=>10, precision=>1}); # => "11.7Ki" format_metric(-0.0017, {base=>10}); # => "1.7m"
$
pkg install p5-Number-Format-MetricOrigin
textproc/p5-Number-Format-Metric
Size
12.7KiB
License
ART10, GPLv1+
Maintainer
vvelox@vvelox.net
Dependencies
1 packages
Required by
1 packages