Functiondojo.number.parse

dojo.require("dojo.number");
defined in dojo/number.js

Create a Number from a string using a known localized pattern. Formatting patterns are chosen appropriate to the locale and follow the syntax described by unicode.org TR35

Usage

function (/*String*/ expression, /*dojo.number.__ParseOptions?*/ options) (view source)
parametertypedescription
expressionStringA string representation of a Number
optionsdojo.number.__ParseOptionsOptional.
fieldtypedescription
.currencyObjectobject with currency information
.localeStringoverride the locale used to determine formatting rules
.patternStringoverride pattern with this string. Default is provided based on
.strictfalse by default
.typeStringOptional. choose a format type based on the locale from the following: decimal, scientific, percent, currency. decimal by default.