freebsd-ports/textproc/p5-Number-Format-Metric/pkg-descr
Stefan Eßer fb16dfecae Remove WWW entries moved into port Makefiles
Commit b7f05445c0 has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.

This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.

Approved by:		portmgr (tcberner)
2022-09-07 23:58:51 +02:00

6 lines
284 B
Text

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"