dojo/number.__FormatOptions

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.__FormatOptions()

Properties

fractional

Defined by: dojo/number

If false, show no decimal places, overriding places and pattern settings.

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. Literal characters in patterns are not supported.

places

Defined by: dojo/number

fixed number of decimal places to show. This overrides any information in the provided pattern.

round

Defined by: dojo/number

5 rounds to nearest .5; 0 rounds to nearest whole (default). -1 means do not round.

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.

© 2005–2017 JS Foundation
Licensed under the AFL 2.1 and BSD 3-Clause licenses.
http://dojotoolkit.org/api/1.10/dojo/number.__FormatOptions.html