% include( '/elements/header.html', 'Developer Documentation' ) %> <& /elements/menubar.html, 'Freeside Perl Modules' => $fsurl.'docs/library/FS.html', 'Complete Index' => $fsurl.'docs/library/index.html', &>
FS::UI::bytecount - Subroutines for parsing and displaying byte counters
use FS::UI::bytecount;
Returns a two decimal place value for COUNT followed by bytes, Kbytes, Mbytes, or GBytes as appropriate.
Accepts a number (digits and a decimal point) possibly followed by k, m, g, or t (and an optional 'b') in either case. Returns a pure number representing the input or the input itself if unparsable. Discards commas as noise.
Converts a pure number to a value followed possibly followed by k, m, g, or t via Number::Format
Fly