Functiondojo.currency.parse

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

Create a Number from a string using a known, localized pattern. Formatting patterns are chosen appropriate to the locale.

Usage

function (/*String*/ expression, /*dojo.currency.__ParseOptions?*/ options) (view source)
parametertypedescription
expressionStringA string representation of a Number
optionsdojo.currency.__ParseOptionsOptional.
fieldtypedescription
.currencyObjectobject with currency information
.fractionalBoolean|ArrayOptional. where places are implied by pattern or explicit 'places' parameter, whether to include the fractional portion. By default for currencies, it the fractional portion is optional.
.localeStringoverride the locale used to determine formatting rules
.patternStringoverride pattern with this string. Default is provided based on
.placesNumberOptional. number of decimal places to accept. Default is defined by currency.
.strictfalse by default
.symbolStringOptional. override currency symbol. Normally, will be looked up in table of supported currencies, and ISO currency code will be used if not found. See dojo.i18n.cldr.nls->currency.js
.typeStringOptional. currency, set by default.