Freeside:1.9:Documentation:Developer/FS/UI/bytecount

From Freeside
< Freeside:1.9:Documentation:Developer‎ | FS
Revision as of 16:54, 3 October 2007 by Ivan (talk | contribs) (import from POD)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

NAME

FS::UI::bytecount - Subroutines for parsing and displaying byte counters

SYNOPSIS

 use FS::UI::bytecount;

SUBROUTINES

bytecount_unexact COUNT
Returns a two decimal place value for COUNT followed by bytes, Kbytes, Mbytes, or GBytes as appropriate.
parse_bytecount AMOUNT
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.
display_bytecount AMOUNT
Converts a pure number to a value followed possibly followed by k, m, g, or t via Number::Format

BUGS

Fly

SEE ALSO

Number::Format