dojo/number.__RegexpOptions (version 1.10)

Note: This is not a real constructor, but just a description of the type of object that should be passed as a parameter to some method(s), and/or the return value from some method(s). In other words, the type exists only for documentation purposes, and you cannot call new number.__RegexpOptions()

Property Summary

  • localeoverride the locale used to determine formatting rules
  • patternoverride formatting pattern with this string.
  • placesnumber of decimal places to accept: Infinity, a positive number, or a range "n,m".
  • strictstrict parsing, false by default.
  • typechoose a format type based on the locale from the following: decimal, scientific (not yet supported), percent, currency. decimal by default.

Properties

locale
Defined by: dojo/number

override the locale used to determine formatting rules

pattern
Defined by: dojo/number

override formatting pattern with this string. Default value is based on locale. Overriding this property will defeat localization.

places
Defined by: dojo/number

number of decimal places to accept: Infinity, a positive number, or a range "n,m". Defined by pattern or Infinity if pattern not provided.

strict
Defined by: dojo/number

strict parsing, false by default. Strict parsing requires input as produced by the format() method. Non-strict is more permissive, e.g. flexible on white space, omitting thousands separators

type
Defined by: dojo/number

choose a format type based on the locale from the following: decimal, scientific (not yet supported), percent, currency. decimal by default.

Error in the documentation? Can’t find what you are looking for? Let us know!