BSD Ports

textproc/p5-Number-Format-Metric 0.60 DragonFly

Format number with metric prefix

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
ART10, GPLv1+
Categories
perl5, textproc
Package size
7.0 KiB, 12.9 KiB installed

Description

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"

In the other systems

SystemPortVersion
DragonFlytextproc/p5-Number-Format-Metric0.60
FreeBSDtextproc/p5-Number-Format-Metric0.60
HardenedBSDtextproc/p5-Number-Format-Metric0.60
GhostBSDtextproc/p5-Number-Format-Metric0.60

Install

Binary package:

pkg install p5-Number-Format-Metric

From DPorts:

cd /usr/dports/textproc/p5-Number-Format-Metric && make install clean

Dependencies

Run dependencies 1
Required by 1