dojo.number._applyPattern
dojo.require("dojo.number");
defined in dojo/number.js
Apply pattern to format value as a string using options. Gives no consideration to local customs.
Usage
function (/*Number*/ value, /*String*/ pattern, /*dojo.number.__FormatOptions?*/ options) (view source)
parameter | type | description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
value | Number | the number to be formatted. | ||||||||||||||||||||||||
pattern | String | a pattern string as described by [unicode.org TR35](http://www.unicode.org/reports/tr35/#Number_Format_Patterns) | ||||||||||||||||||||||||
options | dojo.number.__FormatOptions | Optional. _applyPattern is usually called via `dojo.number.format()` which populates an extra property in the options parameter, "customs". The customs object specifies group and decimal parameters if set.
|