2 min read

Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.

Decimal — openapi

Represents a decimal number in a form similar to scientific notation.

Examples:

Note that the range of a Decimal exceeds that of a JSON number (double), as well as that of a decimal64.

Properties

NameTypeRequiredDescription
significandintegerfalseThe significant digits of the number.
exponentintegerfalseRepresents the position of the decimal point within the significand. When the exponent is 0, the value of the Decimal is simply the value of significand. When the exponent is greater than 0, represents the number of trailing zeroes after the significant digits. When the exponent is less than 0, represents how many of the significant digits (and implicit leading zeroes, as needed) come after the decmial point.

Complete Schema

{
  "type": "object",
  "properties": {
    "significand": {
      "type": "integer",
      "description": "The significant digits of the number.",
      "format": "int64"
    },
    "exponent": {
      "type": "integer",
      "description": "Represents the position of the decimal point within the significand.\n\nWhen the exponent is 0, the value of the Decimal is simply the value of\n`significand`.\n\nWhen the exponent is greater than 0, represents the number of trailing\nzeroes after the significant digits.\n\nWhen the exponent is less than 0, represents how many of the significant\ndigits (and implicit leading zeroes, as needed) come after the decmial\npoint.",
      "format": "int32"
    }
  },
  "description": "Represents a decimal number in a form similar to scientific notation.\n\nExamples:\n - 17            === `{significand: 17   exponent: 0} (or just {significand:\n   17})`\n - -0.005        === `{significand: -5   exponent: -3}`\n - 33.5 million  === `{significand: 335  exponent: 5}`\n - 11/8 (1.375)  === `{significand: 1375 exponent: -3}`\n\nNote that the range of a Decimal exceeds that of a JSON `number` (double), as\nwell as that of a `decimal64`."
}