Functiondojo.number._formatAbsolute

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

Apply numeric pattern to absolute value using options. Gives no consideration to local customs.

Usage

function (/*Number*/ value, /*String*/ pattern, /*dojo.number.__FormatAbsoluteOptions?*/ options) (view source)
parametertypedescription
valueNumberthe number to be formatted, ignores sign
patternStringthe number portion of a pattern (e.g. `#,##0.00`)
optionsdojo.number.__FormatAbsoluteOptionsOptional.
fieldtypedescription
.decimalStringOptional. the decimal separator
.groupStringOptional. the group separator
.placesIntegerOptional. number of decimal places
.roundNumberOptional. 5 rounds to nearest .5; 0 rounds to nearest whole (default). -1 means don't round.