HomeFreeBSD

textproc/p5-Number-Format-Metric: Add new port

Description

textproc/p5-Number-Format-Metric: Add new port

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"

PR: 259078
MFH: 2021Q4 (required to fix missing dependency issue)

Details

Provenance
Zane C. Bowers-Hadley <vvelox@vvelox.net>Authored on Nov 5 2021, 8:07 AM
yasuCommitted on Nov 5 2021, 8:18 AM
Parents
R11:34b8755a4260: lang/go: Update to 1.17.3
Branches
Unknown
Tags
Unknown