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 (object)
:
the format in which to format this number
return (string)
:
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 (string)
:
the numStr to parse
formats (object)
:
a NumberFormat or an array of NumberFormats
return (number,null)
:
if the numStr can be parsed, a number is returned otherwise null is returned
History
2007-05-17
:
Using short names for method and signature.
2007-05-03
:
Refactored.
2007-03-15
:
Added signatures.
2007-01-06
:
Added interception.
2006-07-02
:
Created.

