NumberFormat Data Type

Abstract Type
Properties
name data type constraints description
availableLocales array of string  
currency string  
currencyInstance NumberFormat  
groupingUsed boolean required
instance NumberFormat  
integerInstance NumberFormat  
maximumFractionDigits number required
maximumIntegerDigits number required
minimumFractionDigits number required
minimumIntegerDigits number required
numberInstance NumberFormat  
parseIntegerOnly boolean required
percentInstance NumberFormat  
roundingMode RoundingMode  

Example

{
  "availableLocales" : [ "...", "..." ],
  "currency" : "...",
  "currencyInstance" : {
    "availableLocales" : [ "...", "..." ],
    "currency" : "...",
    "currencyInstance" : { },
    "groupingUsed" : true,
    "instance" : { },
    "integerInstance" : { },
    "maximumFractionDigits" : 12345,
    "maximumIntegerDigits" : 12345,
    "minimumFractionDigits" : 12345,
    "minimumIntegerDigits" : 12345,
    "numberInstance" : { },
    "parseIntegerOnly" : true,
    "percentInstance" : { },
    "roundingMode" : "HALF_DOWN"
  },
  "groupingUsed" : true,
  "instance" : {
    "availableLocales" : [ "...", "..." ],
    "currency" : "...",
    "currencyInstance" : { },
    "groupingUsed" : true,
    "instance" : { },
    "integerInstance" : { },
    "maximumFractionDigits" : 12345,
    "maximumIntegerDigits" : 12345,
    "minimumFractionDigits" : 12345,
    "minimumIntegerDigits" : 12345,
    "numberInstance" : { },
    "parseIntegerOnly" : true,
    "percentInstance" : { },
    "roundingMode" : "DOWN"
  },
  "integerInstance" : {
    "availableLocales" : [ "...", "..." ],
    "currency" : "...",
    "currencyInstance" : { },
    "groupingUsed" : true,
    "instance" : { },
    "integerInstance" : { },
    "maximumFractionDigits" : 12345,
    "maximumIntegerDigits" : 12345,
    "minimumFractionDigits" : 12345,
    "minimumIntegerDigits" : 12345,
    "numberInstance" : { },
    "parseIntegerOnly" : true,
    "percentInstance" : { },
    "roundingMode" : "HALF_EVEN"
  },
  "maximumFractionDigits" : 12345,
  "maximumIntegerDigits" : 12345,
  "minimumFractionDigits" : 12345,
  "minimumIntegerDigits" : 12345,
  "numberInstance" : {
    "availableLocales" : [ "...", "..." ],
    "currency" : "...",
    "currencyInstance" : { },
    "groupingUsed" : true,
    "instance" : { },
    "integerInstance" : { },
    "maximumFractionDigits" : 12345,
    "maximumIntegerDigits" : 12345,
    "minimumFractionDigits" : 12345,
    "minimumIntegerDigits" : 12345,
    "numberInstance" : { },
    "parseIntegerOnly" : true,
    "percentInstance" : { },
    "roundingMode" : "DOWN"
  },
  "parseIntegerOnly" : true,
  "percentInstance" : {
    "availableLocales" : [ "...", "..." ],
    "currency" : "...",
    "currencyInstance" : { },
    "groupingUsed" : true,
    "instance" : { },
    "integerInstance" : { },
    "maximumFractionDigits" : 12345,
    "maximumIntegerDigits" : 12345,
    "minimumFractionDigits" : 12345,
    "minimumIntegerDigits" : 12345,
    "numberInstance" : { },
    "parseIntegerOnly" : true,
    "percentInstance" : { },
    "roundingMode" : "DOWN"
  },
  "roundingMode" : "HALF_EVEN"
}