dojo.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.
parameter | type | description |
---|
expression | String | A string representation of a Number |
options | dojo.currency.__ParseOptions | Optional. field | type | description |
---|
.currency | Object | object with currency information | .fractional | Boolean|Array | Optional. 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. | .locale | String | override the locale used to determine formatting rules | .pattern | String | override pattern with this string. Default is provided based on | .places | Number | Optional. number of decimal places to accept. Default is defined by currency. | .strict | | false by default | .symbol | String | Optional. 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 | .type | String | Optional. currency, set by default. |
|