Source code
CERNY.js.Number
Some useful methods for the Number prototype providing number formatting and parsing.
Used by
None
Functions
format
Format this number according to format.
format
:
the format in which to format this number
return
:
a string containing the number formatted in format
parse
Parse a number out of a numStr based on the the formats provided. If there there is more than one matches the first format is applied to parse the numStr.
numStr
:
the numStr to parse
formats
:
a NumberFormat or an array of NumberFormats
return
:
if the numStr can be parsed, a number is returned otherwise null is returned
History
2007-01-06
:
Added interception.
2006-07-02
:
Created.

