Wijmo UI for the Web
parseNumber Method
wijmo.input Namespace > IFormatValidateLib Interface : parseNumber Method
The string value to parse.
The culture that the parsing library uses.
Parse the string value to a javascript number object.
Syntax
var instance; // Type: wijmo.input.IFormatValidateLib;
var returnValue; // Type: number

// Parameters
var value; // Type:  string
var culture; // Type:  string

returnValue = instance.parseNumber(value, culture);
function parseNumber( 
   value : string,
   culture : string
) : number;

Parameters

value
The string value to parse.
culture
The culture that the parsing library uses.

Return Value

Returns a parsed number object.
Example
$.wijinputcore.parseNumber("12,345.00");     // returns: 12345
$.wijinputcore.parseNumber("12.345,00","de-DE");  // returns: 12345
$.wijinputcore.parseNumber("45.00 %");   // returns: 0.45
$.wijinputcore.parseNumber("$12345.67");  // returns: 12345.67
Remarks
For more information, see Parsing Function Library.
See Also

Reference

IFormatValidateLib Interface