From d884464615ec7a59ea10c559208ba6e01d4da3e1 Mon Sep 17 00:00:00 2001 From: Jesse Alama Date: Tue, 17 Sep 2024 16:14:27 +0200 Subject: [PATCH] Throw when JSON.stringify works with decimals (#167) * Throw when convering a decimal to JSON * Define a `toJSON` method for Decimal128 objects Remove special logic in the `SerializeJSONProperty` AO. * Remove brand checks (we unconditionally throw anyway) --- index.html | 17 +++++++++++++---- spec.emu | 11 +++++++++++ 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index f0a9e589..c4cfb75f 100644 --- a/index.html +++ b/index.html @@ -1559,7 +1559,7 @@ }); let sdoMap = JSON.parse(`{}`); -let biblio = JSON.parse(`{"refsByClause":{"sec-decimal128.prototype.exponent":["_ref_0","_ref_112","_ref_113","_ref_114","_ref_115"],"sec-decimal128.prototype.mantissa":["_ref_1","_ref_116","_ref_117","_ref_118","_ref_119","_ref_120","_ref_121","_ref_122","_ref_123","_ref_124","_ref_125","_ref_126"],"sec-decimal-method-round":["_ref_2","_ref_3","_ref_262","_ref_263","_ref_264","_ref_265","_ref_266","_ref_267","_ref_268","_ref_269"],"sec-decimal128.prototype.tofixed":["_ref_4","_ref_291","_ref_292","_ref_293"],"sec-decimal128.prototype.toprecision":["_ref_5","_ref_294","_ref_295","_ref_296","_ref_297"],"sec-decimal-intro":["_ref_6","_ref_7","_ref_8","_ref_9","_ref_10","_ref_11","_ref_12","_ref_13","_ref_14","_ref_15","_ref_16","_ref_17","_ref_18","_ref_19","_ref_20","_ref_21","_ref_22","_ref_23","_ref_24","_ref_25","_ref_26","_ref_27","_ref_28","_ref_29","_ref_30","_ref_31","_ref_32","_ref_33","_ref_34","_ref_35","_ref_36","_ref_37","_ref_38","_ref_39","_ref_40","_ref_41","_ref_42","_ref_43","_ref_44","_ref_45","_ref_46","_ref_47","_ref_48","_ref_49","_ref_50","_ref_51","_ref_52","_ref_53","_ref_54","_ref_55"],"sec-decimal128-roundtodecimal128domain":["_ref_56","_ref_57","_ref_58","_ref_59","_ref_60","_ref_61","_ref_62"],"sec-decimal128-applyroundingmodetopositive":["_ref_63","_ref_64","_ref_65"],"sec-decimal128-pickquantum":["_ref_66","_ref_67","_ref_68","_ref_69","_ref_70","_ref_71","_ref_72","_ref_73","_ref_74"],"sec-decimal128-roundandpickquantum":["_ref_75","_ref_76","_ref_77","_ref_78","_ref_79","_ref_80"],"sec-decimal128-abs":["_ref_81","_ref_82"],"sec-decimal128-negate":["_ref_83","_ref_84"],"sec-decimal128-decimal128todecimalstring":["_ref_85","_ref_86","_ref_87","_ref_88","_ref_89","_ref_90","_ref_91"],"sec-decimal128toexponentialstring":["_ref_92","_ref_93","_ref_94","_ref_95"],"sec-decimal128-value-to-object":["_ref_96"],"sec-the-decimal128-constructor-value":["_ref_97"],"sec-runtime-semantics-stringdecimalvalue":["_ref_98","_ref_99","_ref_100","_ref_101","_ref_102","_ref_103","_ref_104","_ref_105","_ref_106","_ref_107","_ref_108","_ref_109","_ref_110","_ref_111"],"sec-decimal128.prototype.precision":["_ref_127","_ref_128"],"sec-decimal128.prototype.abs":["_ref_129","_ref_130"],"sec-decimal128.prototype.negate":["_ref_131","_ref_132","_ref_133"],"sec-decimal128.prototype.add":["_ref_134","_ref_135","_ref_136","_ref_137","_ref_138","_ref_139","_ref_140","_ref_141","_ref_142","_ref_143","_ref_144","_ref_145","_ref_146","_ref_147"],"sec-decimal128.prototype.subtract":["_ref_148","_ref_149","_ref_150","_ref_151","_ref_152","_ref_153","_ref_154","_ref_155","_ref_156","_ref_157","_ref_158","_ref_159","_ref_160"],"sec-decimal128.prototype.multiply":["_ref_161","_ref_162","_ref_163","_ref_164","_ref_165","_ref_166","_ref_167","_ref_168","_ref_169","_ref_170","_ref_171","_ref_172","_ref_173","_ref_174","_ref_175","_ref_176","_ref_177","_ref_178","_ref_179","_ref_180","_ref_181","_ref_182","_ref_183","_ref_184","_ref_185","_ref_186","_ref_187","_ref_188","_ref_189","_ref_190","_ref_191"],"sec-decimal128.prototype.divide":["_ref_192","_ref_193","_ref_194","_ref_195","_ref_196","_ref_197","_ref_198","_ref_199","_ref_200","_ref_201","_ref_202","_ref_203","_ref_204","_ref_205","_ref_206","_ref_207","_ref_208","_ref_209","_ref_210","_ref_211","_ref_212","_ref_213","_ref_214","_ref_215","_ref_216","_ref_217","_ref_218","_ref_219","_ref_220","_ref_221","_ref_222","_ref_223","_ref_224","_ref_225","_ref_226"],"sec-decimal128.prototype.remainder":["_ref_227","_ref_228","_ref_229","_ref_230","_ref_231","_ref_232","_ref_233","_ref_234","_ref_235","_ref_236","_ref_237","_ref_238","_ref_239","_ref_240"],"sec-decimal128.prototype.compare":["_ref_241","_ref_242","_ref_243","_ref_244"],"sec-decimal128.prototype.equals":["_ref_245","_ref_246","_ref_247"],"sec-decimal128.prototype.notequals":["_ref_248","_ref_249","_ref_250"],"sec-decimal128.prototype.lessthan":["_ref_251","_ref_252","_ref_253"],"sec-decimal128.prototype.lessthanorequal":["_ref_254","_ref_255","_ref_256"],"sec-decimal128.prototype.greaterthan":["_ref_257","_ref_258","_ref_259"],"sec-decimal128.prototype.greaterthanorequal":["_ref_260","_ref_261"],"sec-decimal-method-scale10":["_ref_270","_ref_271","_ref_272","_ref_273","_ref_274","_ref_275","_ref_276","_ref_277","_ref_278","_ref_279","_ref_280","_ref_281","_ref_282","_ref_283","_ref_284"],"sec-decimal128.prototype.tostring":["_ref_285","_ref_286","_ref_287","_ref_288","_ref_289"],"sec-decimal128.prototype.toexponential":["_ref_290"],"sec-number-constructor-number-value":["_ref_298"],"sec-bigint-constructor-number-value":["_ref_299"],"sec-numbertobigint":["_ref_300"],"sec-tointlmathematicalvalue":["_ref_301","_ref_302","_ref_303","_ref_304","_ref_305"],"sec-formatnumberstring":["_ref_306","_ref_307","_ref_308","_ref_309","_ref_310","_ref_311","_ref_312","_ref_313","_ref_314","_ref_315"],"sec-torawprecision":["_ref_316","_ref_317","_ref_318","_ref_319","_ref_320","_ref_321","_ref_322","_ref_323","_ref_324","_ref_325"],"sec-torawfixed":["_ref_326","_ref_327","_ref_328","_ref_329","_ref_330","_ref_331","_ref_332","_ref_333","_ref_334","_ref_335"],"sec-partitionnumberpattern":["_ref_336","_ref_337","_ref_338","_ref_339","_ref_340","_ref_341","_ref_342","_ref_343","_ref_344"],"sec-resolveplural":["_ref_345","_ref_346"],"sec-resolvepluralrange":["_ref_347","_ref_348"]},"entries":[{"type":"clause","id":"sec-decimal-intro-","titleHTML":"Introduction","number":""},{"type":"term","term":"finite","id":"dfn-decimal128-finite","referencingIds":["_ref_10","_ref_11","_ref_14","_ref_21","_ref_27","_ref_32","_ref_35","_ref_38","_ref_40","_ref_43","_ref_52","_ref_55","_ref_99","_ref_303","_ref_307","_ref_317","_ref_327"]},{"type":"term","term":"zero","id":"dfn-decimal128-zero","referencingIds":["_ref_6","_ref_7","_ref_12","_ref_19","_ref_20","_ref_28","_ref_33","_ref_36","_ref_39","_ref_41","_ref_44","_ref_50","_ref_53","_ref_54","_ref_113","_ref_117","_ref_118","_ref_162","_ref_168"]},{"type":"term","term":"mathematical value","id":"decimal128-mathematical-value","referencingIds":["_ref_8","_ref_9","_ref_13","_ref_29","_ref_46","_ref_56","_ref_58","_ref_59","_ref_61","_ref_63","_ref_65","_ref_67","_ref_69","_ref_75","_ref_77","_ref_112","_ref_115","_ref_116","_ref_125","_ref_245","_ref_248","_ref_251","_ref_254","_ref_257","_ref_302","_ref_304","_ref_305","_ref_306","_ref_308","_ref_311","_ref_316","_ref_318","_ref_319","_ref_322","_ref_324","_ref_326","_ref_328","_ref_329","_ref_332","_ref_334","_ref_340"]},{"type":"op","aoid":"MV","id":"dfn-decimal128-mv","referencingIds":["_ref_15","_ref_16","_ref_17","_ref_102","_ref_103","_ref_104","_ref_106","_ref_107","_ref_109","_ref_110","_ref_241","_ref_242","_ref_243","_ref_244","_ref_246","_ref_247","_ref_249","_ref_250","_ref_252","_ref_253","_ref_255","_ref_256","_ref_258","_ref_259","_ref_260","_ref_261"]},{"type":"term","term":"Decimal128 rounding mode","id":"dfn-decimal128-rounding-mode","referencingIds":["_ref_4","_ref_18","_ref_57","_ref_64","_ref_76"]},{"type":"term","term":"default rounding mode","id":"dfn-decimal128-default-rounding-mode","referencingIds":["_ref_2","_ref_3"]},{"type":"table","id":"table-decimal128-rounding-modes","number":1,"caption":"Table 1: Rounding modes in Decimal128 compared to IEEE 754 rounding modes"},{"type":"op","aoid":"cohort","id":"eqn-decimal128-cohort","referencingIds":["_ref_70","_ref_71","_ref_73","_ref_81","_ref_83","_ref_87","_ref_92","_ref_100","_ref_114","_ref_121","_ref_138","_ref_139","_ref_153","_ref_154","_ref_174","_ref_175","_ref_201","_ref_209","_ref_230","_ref_231","_ref_263","_ref_271","_ref_285","_ref_291","_ref_295","_ref_300","_ref_310","_ref_320","_ref_330","_ref_337"]},{"type":"op","aoid":"quantum","id":"eqn-decimal128-quantum","referencingIds":["_ref_72","_ref_74","_ref_78","_ref_82","_ref_84","_ref_88","_ref_93","_ref_101","_ref_127","_ref_128","_ref_140","_ref_141","_ref_155","_ref_156","_ref_176","_ref_177","_ref_202","_ref_210","_ref_232","_ref_233","_ref_272","_ref_286","_ref_321","_ref_331","_ref_338"]},{"type":"op","aoid":"sign","id":"dfn-decimal128-sign","referencingIds":["_ref_22","_ref_23","_ref_24","_ref_25","_ref_26","_ref_85","_ref_94","_ref_131","_ref_164","_ref_165","_ref_170","_ref_171","_ref_178","_ref_179","_ref_184","_ref_185","_ref_194","_ref_198","_ref_203","_ref_206","_ref_266","_ref_292","_ref_296","_ref_342","_ref_343","_ref_344"]},{"type":"term","term":"exponent","id":"dfn-decimal128-exponent","referencingIds":["_ref_0","_ref_30","_ref_37","_ref_42","_ref_45","_ref_49","_ref_297"]},{"type":"term","term":"significand","id":"dfn-decimal128-significand","referencingIds":["_ref_1","_ref_31","_ref_34"]},{"type":"term","term":"normalized","id":"dfn-decimal128-normalized","referencingIds":["_ref_47","_ref_48"]},{"type":"term","term":"denormalized","id":"dfn-decimal128-denormalized-","referencingIds":["_ref_51"]},{"type":"term","term":"decimal cohort","id":"dfn-decimal-cohort","referencingIds":["_ref_66","_ref_68"]},{"type":"term","term":"truncated exponent","refId":"sec-decimal-intro"},{"type":"term","term":"scaled significand","refId":"sec-decimal-intro"},{"type":"clause","id":"sec-decimal-intro","titleHTML":"Introduction","number":"","referencingIds":["_ref_124","_ref_339"]},{"type":"op","aoid":"ApplyRoundingModeToPositive","refId":"sec-decimal128-applyroundingmodetopositive"},{"type":"clause","id":"sec-decimal128-applyroundingmodetopositive","title":"ApplyRoundingModeToPositive ( m, roundingMode )","titleHTML":"ApplyRoundingModeToPositive ( m, roundingMode )","number":"1.1.1.1","referencingIds":["_ref_62","_ref_267","_ref_293"]},{"type":"op","aoid":"RoundToDecimal128Domain","refId":"sec-decimal128-roundtodecimal128domain"},{"type":"clause","id":"sec-decimal128-roundtodecimal128domain","title":"RoundToDecimal128Domain ( v [ , roundingMode ] )","titleHTML":"RoundToDecimal128Domain ( v [ , roundingMode ] )","number":"1.1.1","referencingIds":["_ref_60","_ref_80"]},{"type":"op","aoid":"PickQuantum","refId":"sec-decimal128-pickquantum"},{"type":"clause","id":"sec-decimal128-pickquantum","title":"PickQuantum ( d, v, qPreferred )","titleHTML":"PickQuantum ( d, v, qPreferred )","number":"1.1.2","referencingIds":["_ref_79","_ref_143","_ref_145","_ref_158","_ref_181","_ref_183","_ref_187","_ref_189","_ref_218","_ref_220","_ref_222","_ref_224","_ref_236","_ref_238","_ref_240","_ref_265","_ref_277"]},{"type":"op","aoid":"RoundAndPickQuantum","refId":"sec-decimal128-roundandpickquantum"},{"type":"clause","id":"sec-decimal128-roundandpickquantum","title":"RoundAndPickQuantum ( v, preferredQuantum [ , roundingMode ] )","titleHTML":"RoundAndPickQuantum ( v, preferredQuantum [ , roundingMode ] )","number":"1.1.3","referencingIds":["_ref_105","_ref_108","_ref_111","_ref_147","_ref_160","_ref_191","_ref_226","_ref_269","_ref_284"]},{"type":"op","aoid":"Decimal128Abs","refId":"sec-decimal128-abs"},{"type":"clause","id":"sec-decimal128-abs","title":"Decimal128Abs ( argument )","titleHTML":"Decimal128Abs ( argument )","number":"1.1.4","referencingIds":["_ref_86","_ref_95","_ref_130"]},{"type":"op","aoid":"Decimal128Negate","refId":"sec-decimal128-negate"},{"type":"clause","id":"sec-decimal128-negate","title":"Decimal128Negate ( argument )","titleHTML":"Decimal128Negate ( argument )","number":"1.1.5","referencingIds":["_ref_133"]},{"type":"op","aoid":"CanonicalizeDecimalString","refId":"sec-decimal128-canonicalizedecimalstring"},{"type":"clause","id":"sec-decimal128-canonicalizedecimalstring","title":"CanonicalizeDecimalString ( digits )","titleHTML":"CanonicalizeDecimalString ( digits )","number":"1.1.6","referencingIds":["_ref_89","_ref_90","_ref_91","_ref_287"]},{"type":"op","aoid":"Decimal128ToDecimalString","refId":"sec-decimal128-decimal128todecimalstring"},{"type":"clause","id":"sec-decimal128-decimal128todecimalstring","title":"Decimal128ToDecimalString ( argument, preserveTrailingZeroes )","titleHTML":"Decimal128ToDecimalString ( argument, preserveTrailingZeroes )","number":"1.1.7","referencingIds":["_ref_289","_ref_294"]},{"type":"op","aoid":"Decimal128ToExponentialString","refId":"sec-decimal128toexponentialstring"},{"type":"clause","id":"sec-decimal128toexponentialstring","title":"Decimal128ToExponentialString ( argument, preserveTrailingZeroes )","titleHTML":"Decimal128ToExponentialString ( argument, preserveTrailingZeroes )","number":"1.1.8","referencingIds":["_ref_288","_ref_290","_ref_298"]},{"type":"op","aoid":"Decimal128ValueToObject","refId":"sec-decimal128-value-to-object"},{"type":"clause","id":"sec-decimal128-value-to-object","title":"Decimal128ValueToObject ( argument )","titleHTML":"Decimal128ValueToObject ( argument )","number":"1.1.9","referencingIds":["_ref_119","_ref_120","_ref_122","_ref_123","_ref_126","_ref_129","_ref_132","_ref_134","_ref_135","_ref_136","_ref_137","_ref_142","_ref_144","_ref_146","_ref_148","_ref_149","_ref_150","_ref_151","_ref_152","_ref_157","_ref_159","_ref_161","_ref_163","_ref_166","_ref_167","_ref_169","_ref_172","_ref_173","_ref_180","_ref_182","_ref_186","_ref_188","_ref_190","_ref_192","_ref_193","_ref_195","_ref_196","_ref_197","_ref_199","_ref_200","_ref_204","_ref_205","_ref_207","_ref_208","_ref_211","_ref_212","_ref_213","_ref_214","_ref_215","_ref_216","_ref_217","_ref_219","_ref_221","_ref_223","_ref_225","_ref_227","_ref_228","_ref_229","_ref_234","_ref_235","_ref_237","_ref_239","_ref_262","_ref_264","_ref_268","_ref_270","_ref_273","_ref_274","_ref_275","_ref_276","_ref_278","_ref_279","_ref_280","_ref_281","_ref_282","_ref_283"]},{"type":"clause","id":"sec-decimal-abstract-ops","titleHTML":"Abstract Operations","number":"1.1"},{"type":"term","term":"%Decimal128%","refId":"sec-the-decimal-constructor"},{"type":"op","aoid":"StringDecimalValue","refId":"sec-runtime-semantics-stringdecimalvalue"},{"type":"clause","id":"sec-runtime-semantics-stringdecimalvalue","titleHTML":"Runtime Semantics: StringDecimalValue","number":"1.2.1.1","referencingIds":["_ref_97","_ref_98"]},{"type":"clause","id":"sec-the-decimal128-constructor-value","title":"Decimal128 ( x )","titleHTML":"Decimal128 ( x )","number":"1.2.1"},{"type":"clause","id":"sec-the-decimal-constructor","titleHTML":"The Decimal128 Constructor","number":"1.2","referencingIds":["_ref_96"]},{"type":"clause","id":"sec-the-decimal-object","titleHTML":"The Decimal128 Object","number":"1"},{"type":"clause","id":"sec-decimal128.prototype.isnan","titleHTML":"Decimal128.prototype.isNaN ( )","number":"2.1"},{"type":"clause","id":"sec-decimal128.prototype.isfinite","titleHTML":"Decimal128.prototype.isFinite ( )","number":"2.2"},{"type":"clause","id":"sec-decimal128.prototype.exponent","titleHTML":"Decimal128.prototype.exponent ( )","number":"2.3"},{"type":"clause","id":"sec-decimal128.prototype.mantissa","titleHTML":"Decimal128.prototype.mantissa ( )","number":"2.4"},{"type":"clause","id":"sec-decimal128.prototype.precision","titleHTML":"Decimal128.prototype.precision","number":"2.5"},{"type":"clause","id":"sec-decimal128.prototype.abs","titleHTML":"Decimal128.prototype.abs ( )","number":"2.6"},{"type":"clause","id":"sec-decimal128.prototype.negate","titleHTML":"Decimal128.prototype.negate ( )","number":"2.7"},{"type":"clause","id":"sec-decimal128.prototype.add","title":"Decimal128.prototype.add ( x )","titleHTML":"Decimal128.prototype.add ( x )","number":"2.8"},{"type":"clause","id":"sec-decimal128.prototype.subtract","title":"Decimal128.prototype.subtract ( x )","titleHTML":"Decimal128.prototype.subtract ( x )","number":"2.9"},{"type":"clause","id":"sec-decimal128.prototype.multiply","title":"Decimal128.prototype.multiply ( x )","titleHTML":"Decimal128.prototype.multiply ( x )","number":"2.10"},{"type":"clause","id":"sec-decimal128.prototype.divide","title":"Decimal128.prototype.divide ( x )","titleHTML":"Decimal128.prototype.divide ( x )","number":"2.11"},{"type":"clause","id":"sec-decimal128.prototype.remainder","title":"Decimal128.prototype.remainder ( x )","titleHTML":"Decimal128.prototype.remainder ( x )","number":"2.12"},{"type":"clause","id":"sec-decimal128.prototype.compare","title":"Decimal128.prototype.compare ( x )","titleHTML":"Decimal128.prototype.compare ( x )","number":"2.13"},{"type":"clause","id":"sec-decimal128.prototype.equals","title":"Decimal128.prototype.equals ( x )","titleHTML":"Decimal128.prototype.equals ( x )","number":"2.14"},{"type":"clause","id":"sec-decimal128.prototype.notequals","title":"Decimal128.prototype.notEquals ( x )","titleHTML":"Decimal128.prototype.notEquals ( x )","number":"2.15"},{"type":"clause","id":"sec-decimal128.prototype.lessthan","title":"Decimal128.prototype.lessThan ( x )","titleHTML":"Decimal128.prototype.lessThan ( x )","number":"2.16"},{"type":"clause","id":"sec-decimal128.prototype.lessthanorequal","title":"Decimal128.prototype.lessThanOrEqual ( x )","titleHTML":"Decimal128.prototype.lessThanOrEqual ( x )","number":"2.17"},{"type":"clause","id":"sec-decimal128.prototype.greaterthan","title":"Decimal128.prototype.greaterThan ( x )","titleHTML":"Decimal128.prototype.greaterThan ( x )","number":"2.18"},{"type":"clause","id":"sec-decimal128.prototype.greaterthanorequal","title":"Decimal128.prototype.greaterThanOrEqual ( x )","titleHTML":"Decimal128.prototype.greaterThanOrEqual ( x )","number":"2.19"},{"type":"clause","id":"sec-decimal-method-round","title":"Decimal128.prototype.round ( numFractionalDigits [ , roundingMode ] )","titleHTML":"Decimal128.prototype.round ( numFractionalDigits [ , roundingMode ] )","number":"2.20"},{"type":"clause","id":"sec-decimal-method-scale10","title":"Decimal128.prototype.scale10 ( n )","titleHTML":"Decimal128.prototype.scale10 ( n )","number":"2.21"},{"type":"clause","id":"sec-decimal128.prototype.tostring","title":"Decimal128.prototype.toString ( [ options ] )","titleHTML":"Decimal128.prototype.toString ( [ options ] )","number":"2.22","referencingIds":["_ref_5"]},{"type":"clause","id":"sec-decimal128.prototype.toexponential","title":"Decimal128.prototype.toExponential ( [ options ] )","titleHTML":"Decimal128.prototype.toExponential ( [ options ] )","number":"2.23"},{"type":"clause","id":"sec-decimal128.prototype.tofixed","title":"Decimal128.prototype.toFixed ( [ options ] )","titleHTML":"Decimal128.prototype.toFixed ( [ options ] )","number":"2.24"},{"type":"clause","id":"sec-decimal128.prototype.toprecision","title":"Decimal128.prototype.toPrecision ( [ options ] )","titleHTML":"Decimal128.prototype.toPrecision ( [ options ] )","number":"2.25"},{"type":"clause","id":"sec-decimal128.prototype.valueof","title":"Decimal128.prototype.valueOf ( x )","titleHTML":"Decimal128.prototype.valueOf ( x )","number":"2.26"},{"type":"clause","id":"sec-decimal-prototype-properties","titleHTML":"Properties of the Decimal128 Prototype","number":"2"},{"type":"clause","id":"sec-number-constructor-number-value","title":"Number ( value )","titleHTML":"Number ( value )","number":"3.1.1.1"},{"type":"clause","id":"sec-number-constructor","titleHTML":"The Number Constructor","number":"3.1.1"},{"type":"clause","id":"sec-number-objects","titleHTML":"Number Objects","number":"3.1"},{"type":"op","aoid":"Decimal128ToBigInt","refId":"sec-numbertobigint"},{"type":"clause","id":"sec-numbertobigint","title":"Decimal128ToBigInt ( number )","titleHTML":"Decimal128ToBigInt ( number )","number":"3.2.1.1.1","referencingIds":["_ref_299"]},{"type":"clause","id":"sec-bigint-constructor-number-value","title":"BigInt ( value )","titleHTML":"BigInt ( value )","number":"3.2.1.1"},{"type":"clause","id":"sec-bigint-constructor","titleHTML":"The BigInt Constructor","number":"3.2.1"},{"type":"clause","id":"sec-bigint-objects","titleHTML":"BigInt Objects","number":"3.2"},{"type":"clause","id":"sec-numbers-and-dates","titleHTML":"Numbers and Dates","number":"3"},{"type":"term","term":"Intl mathematical value","id":"intl-mathematical-value","referencingIds":["_ref_301","_ref_309","_ref_336"]},{"type":"op","aoid":"ToIntlMathematicalValue","refId":"sec-tointlmathematicalvalue"},{"type":"clause","id":"sec-tointlmathematicalvalue","title":"ToIntlMathematicalValue ( value )","titleHTML":"ToIntlMathematicalValue ( value )","number":"4.1.1.1"},{"type":"op","aoid":"FormatNumericToString","refId":"sec-formatnumberstring"},{"type":"clause","id":"sec-formatnumberstring","title":"FormatNumericToString ( intlObject, x )","titleHTML":"FormatNumericToString ( intlObject, x )","number":"4.1.1.2","referencingIds":["_ref_341","_ref_345","_ref_346"]},{"type":"op","aoid":"ToRawPrecisionFn","id":"eqn-ToRawPrecisionFn","referencingIds":["_ref_323","_ref_325"]},{"type":"op","aoid":"ToRawPrecision","refId":"sec-torawprecision"},{"type":"clause","id":"sec-torawprecision","title":"ToRawPrecision ( x, minPrecision, maxPrecision, unsignedRoundingMode )","titleHTML":"ToRawPrecision ( x, minPrecision, maxPrecision, unsignedRoundingMode )","number":"4.1.1.3","referencingIds":["_ref_312","_ref_314"]},{"type":"op","aoid":"ToRawFixedFn","id":"eqn-ToRawFixedFn","referencingIds":["_ref_333","_ref_335"]},{"type":"op","aoid":"ToRawFixed","refId":"sec-torawfixed"},{"type":"clause","id":"sec-torawfixed","title":"ToRawFixed ( x, minFraction, maxFraction, roundingIncrement, unsignedRoundingMode )","titleHTML":"ToRawFixed ( x, minFraction, maxFraction, roundingIncrement, unsignedRoundingMode )","number":"4.1.1.4","referencingIds":["_ref_313","_ref_315"]},{"type":"op","aoid":"PartitionNumberPattern","refId":"sec-partitionnumberpattern"},{"type":"clause","id":"sec-partitionnumberpattern","title":"PartitionNumberPattern ( numberFormat, x )","titleHTML":"PartitionNumberPattern ( numberFormat, x )","number":"4.1.1.5"},{"type":"clause","id":"sec-numberformat-abstracts","titleHTML":"Abstract Operations for NumberFormat Objects","number":"4.1.1"},{"type":"clause","id":"numberformat-objects","titleHTML":"NumberFormat Objects","number":"4.1"},{"type":"op","aoid":"ResolvePlural","refId":"sec-resolveplural"},{"type":"clause","id":"sec-resolveplural","title":"ResolvePlural ( pluralRules, n )","titleHTML":"ResolvePlural ( pluralRules, n )","number":"4.2.1.1","referencingIds":["_ref_347","_ref_348"]},{"type":"op","aoid":"ResolvePluralRange","refId":"sec-resolvepluralrange"},{"type":"clause","id":"sec-resolvepluralrange","title":"ResolvePluralRange ( pluralRules, x, y )","titleHTML":"ResolvePluralRange ( pluralRules, x, y )","number":"4.2.1.2"},{"type":"clause","id":"sec-intl-pluralrules-abstracts","titleHTML":"Abstract Operations for PluralRules Objects","number":"4.2.1"},{"type":"clause","id":"pluralrules-objects","titleHTML":"PluralRules Objects","number":"4.2"},{"type":"clause","id":"sec-decimal-intl","titleHTML":"Amendments to the ECMAScript® 2024 Internationalization API Specification","number":"4"},{"type":"clause","id":"sec-copyright-and-software-license","title":"Copyright & Software License","titleHTML":"Copyright & Software License","number":"A"}]}`); +let biblio = JSON.parse(`{"refsByClause":{"sec-decimal128.prototype.exponent":["_ref_0","_ref_112","_ref_113","_ref_114","_ref_115"],"sec-decimal128.prototype.mantissa":["_ref_1","_ref_116","_ref_117","_ref_118","_ref_119","_ref_120","_ref_121","_ref_122","_ref_123","_ref_124","_ref_125","_ref_126"],"sec-decimal-method-round":["_ref_2","_ref_3","_ref_262","_ref_263","_ref_264","_ref_265","_ref_266","_ref_267","_ref_268","_ref_269"],"sec-decimal128.prototype.tofixed":["_ref_4","_ref_291","_ref_292","_ref_293"],"sec-decimal128.prototype.toprecision":["_ref_5","_ref_294","_ref_295","_ref_296","_ref_297"],"sec-decimal-intro":["_ref_6","_ref_7","_ref_8","_ref_9","_ref_10","_ref_11","_ref_12","_ref_13","_ref_14","_ref_15","_ref_16","_ref_17","_ref_18","_ref_19","_ref_20","_ref_21","_ref_22","_ref_23","_ref_24","_ref_25","_ref_26","_ref_27","_ref_28","_ref_29","_ref_30","_ref_31","_ref_32","_ref_33","_ref_34","_ref_35","_ref_36","_ref_37","_ref_38","_ref_39","_ref_40","_ref_41","_ref_42","_ref_43","_ref_44","_ref_45","_ref_46","_ref_47","_ref_48","_ref_49","_ref_50","_ref_51","_ref_52","_ref_53","_ref_54","_ref_55"],"sec-decimal128-roundtodecimal128domain":["_ref_56","_ref_57","_ref_58","_ref_59","_ref_60","_ref_61","_ref_62"],"sec-decimal128-applyroundingmodetopositive":["_ref_63","_ref_64","_ref_65"],"sec-decimal128-pickquantum":["_ref_66","_ref_67","_ref_68","_ref_69","_ref_70","_ref_71","_ref_72","_ref_73","_ref_74"],"sec-decimal128-roundandpickquantum":["_ref_75","_ref_76","_ref_77","_ref_78","_ref_79","_ref_80"],"sec-decimal128-abs":["_ref_81","_ref_82"],"sec-decimal128-negate":["_ref_83","_ref_84"],"sec-decimal128-decimal128todecimalstring":["_ref_85","_ref_86","_ref_87","_ref_88","_ref_89","_ref_90","_ref_91"],"sec-decimal128toexponentialstring":["_ref_92","_ref_93","_ref_94","_ref_95"],"sec-decimal128-value-to-object":["_ref_96"],"sec-the-decimal128-constructor-value":["_ref_97"],"sec-runtime-semantics-stringdecimalvalue":["_ref_98","_ref_99","_ref_100","_ref_101","_ref_102","_ref_103","_ref_104","_ref_105","_ref_106","_ref_107","_ref_108","_ref_109","_ref_110","_ref_111"],"sec-decimal128.prototype.precision":["_ref_127","_ref_128"],"sec-decimal128.prototype.abs":["_ref_129","_ref_130"],"sec-decimal128.prototype.negate":["_ref_131","_ref_132","_ref_133"],"sec-decimal128.prototype.add":["_ref_134","_ref_135","_ref_136","_ref_137","_ref_138","_ref_139","_ref_140","_ref_141","_ref_142","_ref_143","_ref_144","_ref_145","_ref_146","_ref_147"],"sec-decimal128.prototype.subtract":["_ref_148","_ref_149","_ref_150","_ref_151","_ref_152","_ref_153","_ref_154","_ref_155","_ref_156","_ref_157","_ref_158","_ref_159","_ref_160"],"sec-decimal128.prototype.multiply":["_ref_161","_ref_162","_ref_163","_ref_164","_ref_165","_ref_166","_ref_167","_ref_168","_ref_169","_ref_170","_ref_171","_ref_172","_ref_173","_ref_174","_ref_175","_ref_176","_ref_177","_ref_178","_ref_179","_ref_180","_ref_181","_ref_182","_ref_183","_ref_184","_ref_185","_ref_186","_ref_187","_ref_188","_ref_189","_ref_190","_ref_191"],"sec-decimal128.prototype.divide":["_ref_192","_ref_193","_ref_194","_ref_195","_ref_196","_ref_197","_ref_198","_ref_199","_ref_200","_ref_201","_ref_202","_ref_203","_ref_204","_ref_205","_ref_206","_ref_207","_ref_208","_ref_209","_ref_210","_ref_211","_ref_212","_ref_213","_ref_214","_ref_215","_ref_216","_ref_217","_ref_218","_ref_219","_ref_220","_ref_221","_ref_222","_ref_223","_ref_224","_ref_225","_ref_226"],"sec-decimal128.prototype.remainder":["_ref_227","_ref_228","_ref_229","_ref_230","_ref_231","_ref_232","_ref_233","_ref_234","_ref_235","_ref_236","_ref_237","_ref_238","_ref_239","_ref_240"],"sec-decimal128.prototype.compare":["_ref_241","_ref_242","_ref_243","_ref_244"],"sec-decimal128.prototype.equals":["_ref_245","_ref_246","_ref_247"],"sec-decimal128.prototype.notequals":["_ref_248","_ref_249","_ref_250"],"sec-decimal128.prototype.lessthan":["_ref_251","_ref_252","_ref_253"],"sec-decimal128.prototype.lessthanorequal":["_ref_254","_ref_255","_ref_256"],"sec-decimal128.prototype.greaterthan":["_ref_257","_ref_258","_ref_259"],"sec-decimal128.prototype.greaterthanorequal":["_ref_260","_ref_261"],"sec-decimal-method-scale10":["_ref_270","_ref_271","_ref_272","_ref_273","_ref_274","_ref_275","_ref_276","_ref_277","_ref_278","_ref_279","_ref_280","_ref_281","_ref_282","_ref_283","_ref_284"],"sec-decimal128.prototype.tostring":["_ref_285","_ref_286","_ref_287","_ref_288","_ref_289"],"sec-decimal128.prototype.toexponential":["_ref_290"],"sec-number-constructor-number-value":["_ref_298"],"sec-bigint-constructor-number-value":["_ref_299"],"sec-numbertobigint":["_ref_300"],"sec-tointlmathematicalvalue":["_ref_301","_ref_302","_ref_303","_ref_304","_ref_305"],"sec-formatnumberstring":["_ref_306","_ref_307","_ref_308","_ref_309","_ref_310","_ref_311","_ref_312","_ref_313","_ref_314","_ref_315"],"sec-torawprecision":["_ref_316","_ref_317","_ref_318","_ref_319","_ref_320","_ref_321","_ref_322","_ref_323","_ref_324","_ref_325"],"sec-torawfixed":["_ref_326","_ref_327","_ref_328","_ref_329","_ref_330","_ref_331","_ref_332","_ref_333","_ref_334","_ref_335"],"sec-partitionnumberpattern":["_ref_336","_ref_337","_ref_338","_ref_339","_ref_340","_ref_341","_ref_342","_ref_343","_ref_344"],"sec-resolveplural":["_ref_345","_ref_346"],"sec-resolvepluralrange":["_ref_347","_ref_348"]},"entries":[{"type":"clause","id":"sec-decimal-intro-","titleHTML":"Introduction","number":""},{"type":"term","term":"finite","id":"dfn-decimal128-finite","referencingIds":["_ref_10","_ref_11","_ref_14","_ref_21","_ref_27","_ref_32","_ref_35","_ref_38","_ref_40","_ref_43","_ref_52","_ref_55","_ref_99","_ref_303","_ref_307","_ref_317","_ref_327"]},{"type":"term","term":"zero","id":"dfn-decimal128-zero","referencingIds":["_ref_6","_ref_7","_ref_12","_ref_19","_ref_20","_ref_28","_ref_33","_ref_36","_ref_39","_ref_41","_ref_44","_ref_50","_ref_53","_ref_54","_ref_113","_ref_117","_ref_118","_ref_162","_ref_168"]},{"type":"term","term":"mathematical value","id":"decimal128-mathematical-value","referencingIds":["_ref_8","_ref_9","_ref_13","_ref_29","_ref_46","_ref_56","_ref_58","_ref_59","_ref_61","_ref_63","_ref_65","_ref_67","_ref_69","_ref_75","_ref_77","_ref_112","_ref_115","_ref_116","_ref_125","_ref_245","_ref_248","_ref_251","_ref_254","_ref_257","_ref_302","_ref_304","_ref_305","_ref_306","_ref_308","_ref_311","_ref_316","_ref_318","_ref_319","_ref_322","_ref_324","_ref_326","_ref_328","_ref_329","_ref_332","_ref_334","_ref_340"]},{"type":"op","aoid":"MV","id":"dfn-decimal128-mv","referencingIds":["_ref_15","_ref_16","_ref_17","_ref_102","_ref_103","_ref_104","_ref_106","_ref_107","_ref_109","_ref_110","_ref_241","_ref_242","_ref_243","_ref_244","_ref_246","_ref_247","_ref_249","_ref_250","_ref_252","_ref_253","_ref_255","_ref_256","_ref_258","_ref_259","_ref_260","_ref_261"]},{"type":"term","term":"Decimal128 rounding mode","id":"dfn-decimal128-rounding-mode","referencingIds":["_ref_4","_ref_18","_ref_57","_ref_64","_ref_76"]},{"type":"term","term":"default rounding mode","id":"dfn-decimal128-default-rounding-mode","referencingIds":["_ref_2","_ref_3"]},{"type":"table","id":"table-decimal128-rounding-modes","number":1,"caption":"Table 1: Rounding modes in Decimal128 compared to IEEE 754 rounding modes"},{"type":"op","aoid":"cohort","id":"eqn-decimal128-cohort","referencingIds":["_ref_70","_ref_71","_ref_73","_ref_81","_ref_83","_ref_87","_ref_92","_ref_100","_ref_114","_ref_121","_ref_138","_ref_139","_ref_153","_ref_154","_ref_174","_ref_175","_ref_201","_ref_209","_ref_230","_ref_231","_ref_263","_ref_271","_ref_285","_ref_291","_ref_295","_ref_300","_ref_310","_ref_320","_ref_330","_ref_337"]},{"type":"op","aoid":"quantum","id":"eqn-decimal128-quantum","referencingIds":["_ref_72","_ref_74","_ref_78","_ref_82","_ref_84","_ref_88","_ref_93","_ref_101","_ref_127","_ref_128","_ref_140","_ref_141","_ref_155","_ref_156","_ref_176","_ref_177","_ref_202","_ref_210","_ref_232","_ref_233","_ref_272","_ref_286","_ref_321","_ref_331","_ref_338"]},{"type":"op","aoid":"sign","id":"dfn-decimal128-sign","referencingIds":["_ref_22","_ref_23","_ref_24","_ref_25","_ref_26","_ref_85","_ref_94","_ref_131","_ref_164","_ref_165","_ref_170","_ref_171","_ref_178","_ref_179","_ref_184","_ref_185","_ref_194","_ref_198","_ref_203","_ref_206","_ref_266","_ref_292","_ref_296","_ref_342","_ref_343","_ref_344"]},{"type":"term","term":"exponent","id":"dfn-decimal128-exponent","referencingIds":["_ref_0","_ref_30","_ref_37","_ref_42","_ref_45","_ref_49","_ref_297"]},{"type":"term","term":"significand","id":"dfn-decimal128-significand","referencingIds":["_ref_1","_ref_31","_ref_34"]},{"type":"term","term":"normalized","id":"dfn-decimal128-normalized","referencingIds":["_ref_47","_ref_48"]},{"type":"term","term":"denormalized","id":"dfn-decimal128-denormalized-","referencingIds":["_ref_51"]},{"type":"term","term":"decimal cohort","id":"dfn-decimal-cohort","referencingIds":["_ref_66","_ref_68"]},{"type":"term","term":"truncated exponent","refId":"sec-decimal-intro"},{"type":"term","term":"scaled significand","refId":"sec-decimal-intro"},{"type":"clause","id":"sec-decimal-intro","titleHTML":"Introduction","number":"","referencingIds":["_ref_124","_ref_339"]},{"type":"op","aoid":"ApplyRoundingModeToPositive","refId":"sec-decimal128-applyroundingmodetopositive"},{"type":"clause","id":"sec-decimal128-applyroundingmodetopositive","title":"ApplyRoundingModeToPositive ( m, roundingMode )","titleHTML":"ApplyRoundingModeToPositive ( m, roundingMode )","number":"1.1.1.1","referencingIds":["_ref_62","_ref_267","_ref_293"]},{"type":"op","aoid":"RoundToDecimal128Domain","refId":"sec-decimal128-roundtodecimal128domain"},{"type":"clause","id":"sec-decimal128-roundtodecimal128domain","title":"RoundToDecimal128Domain ( v [ , roundingMode ] )","titleHTML":"RoundToDecimal128Domain ( v [ , roundingMode ] )","number":"1.1.1","referencingIds":["_ref_60","_ref_80"]},{"type":"op","aoid":"PickQuantum","refId":"sec-decimal128-pickquantum"},{"type":"clause","id":"sec-decimal128-pickquantum","title":"PickQuantum ( d, v, qPreferred )","titleHTML":"PickQuantum ( d, v, qPreferred )","number":"1.1.2","referencingIds":["_ref_79","_ref_143","_ref_145","_ref_158","_ref_181","_ref_183","_ref_187","_ref_189","_ref_218","_ref_220","_ref_222","_ref_224","_ref_236","_ref_238","_ref_240","_ref_265","_ref_277"]},{"type":"op","aoid":"RoundAndPickQuantum","refId":"sec-decimal128-roundandpickquantum"},{"type":"clause","id":"sec-decimal128-roundandpickquantum","title":"RoundAndPickQuantum ( v, preferredQuantum [ , roundingMode ] )","titleHTML":"RoundAndPickQuantum ( v, preferredQuantum [ , roundingMode ] )","number":"1.1.3","referencingIds":["_ref_105","_ref_108","_ref_111","_ref_147","_ref_160","_ref_191","_ref_226","_ref_269","_ref_284"]},{"type":"op","aoid":"Decimal128Abs","refId":"sec-decimal128-abs"},{"type":"clause","id":"sec-decimal128-abs","title":"Decimal128Abs ( argument )","titleHTML":"Decimal128Abs ( argument )","number":"1.1.4","referencingIds":["_ref_86","_ref_95","_ref_130"]},{"type":"op","aoid":"Decimal128Negate","refId":"sec-decimal128-negate"},{"type":"clause","id":"sec-decimal128-negate","title":"Decimal128Negate ( argument )","titleHTML":"Decimal128Negate ( argument )","number":"1.1.5","referencingIds":["_ref_133"]},{"type":"op","aoid":"CanonicalizeDecimalString","refId":"sec-decimal128-canonicalizedecimalstring"},{"type":"clause","id":"sec-decimal128-canonicalizedecimalstring","title":"CanonicalizeDecimalString ( digits )","titleHTML":"CanonicalizeDecimalString ( digits )","number":"1.1.6","referencingIds":["_ref_89","_ref_90","_ref_91","_ref_287"]},{"type":"op","aoid":"Decimal128ToDecimalString","refId":"sec-decimal128-decimal128todecimalstring"},{"type":"clause","id":"sec-decimal128-decimal128todecimalstring","title":"Decimal128ToDecimalString ( argument, preserveTrailingZeroes )","titleHTML":"Decimal128ToDecimalString ( argument, preserveTrailingZeroes )","number":"1.1.7","referencingIds":["_ref_289","_ref_294"]},{"type":"op","aoid":"Decimal128ToExponentialString","refId":"sec-decimal128toexponentialstring"},{"type":"clause","id":"sec-decimal128toexponentialstring","title":"Decimal128ToExponentialString ( argument, preserveTrailingZeroes )","titleHTML":"Decimal128ToExponentialString ( argument, preserveTrailingZeroes )","number":"1.1.8","referencingIds":["_ref_288","_ref_290","_ref_298"]},{"type":"op","aoid":"Decimal128ValueToObject","refId":"sec-decimal128-value-to-object"},{"type":"clause","id":"sec-decimal128-value-to-object","title":"Decimal128ValueToObject ( argument )","titleHTML":"Decimal128ValueToObject ( argument )","number":"1.1.9","referencingIds":["_ref_119","_ref_120","_ref_122","_ref_123","_ref_126","_ref_129","_ref_132","_ref_134","_ref_135","_ref_136","_ref_137","_ref_142","_ref_144","_ref_146","_ref_148","_ref_149","_ref_150","_ref_151","_ref_152","_ref_157","_ref_159","_ref_161","_ref_163","_ref_166","_ref_167","_ref_169","_ref_172","_ref_173","_ref_180","_ref_182","_ref_186","_ref_188","_ref_190","_ref_192","_ref_193","_ref_195","_ref_196","_ref_197","_ref_199","_ref_200","_ref_204","_ref_205","_ref_207","_ref_208","_ref_211","_ref_212","_ref_213","_ref_214","_ref_215","_ref_216","_ref_217","_ref_219","_ref_221","_ref_223","_ref_225","_ref_227","_ref_228","_ref_229","_ref_234","_ref_235","_ref_237","_ref_239","_ref_262","_ref_264","_ref_268","_ref_270","_ref_273","_ref_274","_ref_275","_ref_276","_ref_278","_ref_279","_ref_280","_ref_281","_ref_282","_ref_283"]},{"type":"clause","id":"sec-decimal-abstract-ops","titleHTML":"Abstract Operations","number":"1.1"},{"type":"term","term":"%Decimal128%","refId":"sec-the-decimal-constructor"},{"type":"op","aoid":"StringDecimalValue","refId":"sec-runtime-semantics-stringdecimalvalue"},{"type":"clause","id":"sec-runtime-semantics-stringdecimalvalue","titleHTML":"Runtime Semantics: StringDecimalValue","number":"1.2.1.1","referencingIds":["_ref_97","_ref_98"]},{"type":"clause","id":"sec-the-decimal128-constructor-value","title":"Decimal128 ( x )","titleHTML":"Decimal128 ( x )","number":"1.2.1"},{"type":"clause","id":"sec-the-decimal-constructor","titleHTML":"The Decimal128 Constructor","number":"1.2","referencingIds":["_ref_96"]},{"type":"clause","id":"sec-the-decimal-object","titleHTML":"The Decimal128 Object","number":"1"},{"type":"clause","id":"sec-decimal128.prototype.isnan","titleHTML":"Decimal128.prototype.isNaN ( )","number":"2.1"},{"type":"clause","id":"sec-decimal128.prototype.isfinite","titleHTML":"Decimal128.prototype.isFinite ( )","number":"2.2"},{"type":"clause","id":"sec-decimal128.prototype.exponent","titleHTML":"Decimal128.prototype.exponent ( )","number":"2.3"},{"type":"clause","id":"sec-decimal128.prototype.mantissa","titleHTML":"Decimal128.prototype.mantissa ( )","number":"2.4"},{"type":"clause","id":"sec-decimal128.prototype.precision","titleHTML":"Decimal128.prototype.precision","number":"2.5"},{"type":"clause","id":"sec-decimal128.prototype.abs","titleHTML":"Decimal128.prototype.abs ( )","number":"2.6"},{"type":"clause","id":"sec-decimal128.prototype.negate","titleHTML":"Decimal128.prototype.negate ( )","number":"2.7"},{"type":"clause","id":"sec-decimal128.prototype.add","title":"Decimal128.prototype.add ( x )","titleHTML":"Decimal128.prototype.add ( x )","number":"2.8"},{"type":"clause","id":"sec-decimal128.prototype.subtract","title":"Decimal128.prototype.subtract ( x )","titleHTML":"Decimal128.prototype.subtract ( x )","number":"2.9"},{"type":"clause","id":"sec-decimal128.prototype.multiply","title":"Decimal128.prototype.multiply ( x )","titleHTML":"Decimal128.prototype.multiply ( x )","number":"2.10"},{"type":"clause","id":"sec-decimal128.prototype.divide","title":"Decimal128.prototype.divide ( x )","titleHTML":"Decimal128.prototype.divide ( x )","number":"2.11"},{"type":"clause","id":"sec-decimal128.prototype.remainder","title":"Decimal128.prototype.remainder ( x )","titleHTML":"Decimal128.prototype.remainder ( x )","number":"2.12"},{"type":"clause","id":"sec-decimal128.prototype.compare","title":"Decimal128.prototype.compare ( x )","titleHTML":"Decimal128.prototype.compare ( x )","number":"2.13"},{"type":"clause","id":"sec-decimal128.prototype.equals","title":"Decimal128.prototype.equals ( x )","titleHTML":"Decimal128.prototype.equals ( x )","number":"2.14"},{"type":"clause","id":"sec-decimal128.prototype.notequals","title":"Decimal128.prototype.notEquals ( x )","titleHTML":"Decimal128.prototype.notEquals ( x )","number":"2.15"},{"type":"clause","id":"sec-decimal128.prototype.lessthan","title":"Decimal128.prototype.lessThan ( x )","titleHTML":"Decimal128.prototype.lessThan ( x )","number":"2.16"},{"type":"clause","id":"sec-decimal128.prototype.lessthanorequal","title":"Decimal128.prototype.lessThanOrEqual ( x )","titleHTML":"Decimal128.prototype.lessThanOrEqual ( x )","number":"2.17"},{"type":"clause","id":"sec-decimal128.prototype.greaterthan","title":"Decimal128.prototype.greaterThan ( x )","titleHTML":"Decimal128.prototype.greaterThan ( x )","number":"2.18"},{"type":"clause","id":"sec-decimal128.prototype.greaterthanorequal","title":"Decimal128.prototype.greaterThanOrEqual ( x )","titleHTML":"Decimal128.prototype.greaterThanOrEqual ( x )","number":"2.19"},{"type":"clause","id":"sec-decimal-method-round","title":"Decimal128.prototype.round ( numFractionalDigits [ , roundingMode ] )","titleHTML":"Decimal128.prototype.round ( numFractionalDigits [ , roundingMode ] )","number":"2.20"},{"type":"clause","id":"sec-decimal-method-scale10","title":"Decimal128.prototype.scale10 ( n )","titleHTML":"Decimal128.prototype.scale10 ( n )","number":"2.21"},{"type":"clause","id":"sec-decimal128.prototype.tostring","title":"Decimal128.prototype.toString ( [ options ] )","titleHTML":"Decimal128.prototype.toString ( [ options ] )","number":"2.22","referencingIds":["_ref_5"]},{"type":"clause","id":"sec-decimal128.prototype.toexponential","title":"Decimal128.prototype.toExponential ( [ options ] )","titleHTML":"Decimal128.prototype.toExponential ( [ options ] )","number":"2.23"},{"type":"clause","id":"sec-decimal128.prototype.tofixed","title":"Decimal128.prototype.toFixed ( [ options ] )","titleHTML":"Decimal128.prototype.toFixed ( [ options ] )","number":"2.24"},{"type":"clause","id":"sec-decimal128.prototype.tojson","titleHTML":"Decimal128.prototype.toJSON ( )","number":"2.25"},{"type":"clause","id":"sec-decimal128.prototype.toprecision","title":"Decimal128.prototype.toPrecision ( [ options ] )","titleHTML":"Decimal128.prototype.toPrecision ( [ options ] )","number":"2.26"},{"type":"clause","id":"sec-decimal128.prototype.valueof","title":"Decimal128.prototype.valueOf ( x )","titleHTML":"Decimal128.prototype.valueOf ( x )","number":"2.27"},{"type":"clause","id":"sec-decimal-prototype-properties","titleHTML":"Properties of the Decimal128 Prototype","number":"2"},{"type":"clause","id":"sec-number-constructor-number-value","title":"Number ( value )","titleHTML":"Number ( value )","number":"3.1.1.1"},{"type":"clause","id":"sec-number-constructor","titleHTML":"The Number Constructor","number":"3.1.1"},{"type":"clause","id":"sec-number-objects","titleHTML":"Number Objects","number":"3.1"},{"type":"op","aoid":"Decimal128ToBigInt","refId":"sec-numbertobigint"},{"type":"clause","id":"sec-numbertobigint","title":"Decimal128ToBigInt ( number )","titleHTML":"Decimal128ToBigInt ( number )","number":"3.2.1.1.1","referencingIds":["_ref_299"]},{"type":"clause","id":"sec-bigint-constructor-number-value","title":"BigInt ( value )","titleHTML":"BigInt ( value )","number":"3.2.1.1"},{"type":"clause","id":"sec-bigint-constructor","titleHTML":"The BigInt Constructor","number":"3.2.1"},{"type":"clause","id":"sec-bigint-objects","titleHTML":"BigInt Objects","number":"3.2"},{"type":"clause","id":"sec-numbers-and-dates","titleHTML":"Numbers and Dates","number":"3"},{"type":"term","term":"Intl mathematical value","id":"intl-mathematical-value","referencingIds":["_ref_301","_ref_309","_ref_336"]},{"type":"op","aoid":"ToIntlMathematicalValue","refId":"sec-tointlmathematicalvalue"},{"type":"clause","id":"sec-tointlmathematicalvalue","title":"ToIntlMathematicalValue ( value )","titleHTML":"ToIntlMathematicalValue ( value )","number":"4.1.1.1"},{"type":"op","aoid":"FormatNumericToString","refId":"sec-formatnumberstring"},{"type":"clause","id":"sec-formatnumberstring","title":"FormatNumericToString ( intlObject, x )","titleHTML":"FormatNumericToString ( intlObject, x )","number":"4.1.1.2","referencingIds":["_ref_341","_ref_345","_ref_346"]},{"type":"op","aoid":"ToRawPrecisionFn","id":"eqn-ToRawPrecisionFn","referencingIds":["_ref_323","_ref_325"]},{"type":"op","aoid":"ToRawPrecision","refId":"sec-torawprecision"},{"type":"clause","id":"sec-torawprecision","title":"ToRawPrecision ( x, minPrecision, maxPrecision, unsignedRoundingMode )","titleHTML":"ToRawPrecision ( x, minPrecision, maxPrecision, unsignedRoundingMode )","number":"4.1.1.3","referencingIds":["_ref_312","_ref_314"]},{"type":"op","aoid":"ToRawFixedFn","id":"eqn-ToRawFixedFn","referencingIds":["_ref_333","_ref_335"]},{"type":"op","aoid":"ToRawFixed","refId":"sec-torawfixed"},{"type":"clause","id":"sec-torawfixed","title":"ToRawFixed ( x, minFraction, maxFraction, roundingIncrement, unsignedRoundingMode )","titleHTML":"ToRawFixed ( x, minFraction, maxFraction, roundingIncrement, unsignedRoundingMode )","number":"4.1.1.4","referencingIds":["_ref_313","_ref_315"]},{"type":"op","aoid":"PartitionNumberPattern","refId":"sec-partitionnumberpattern"},{"type":"clause","id":"sec-partitionnumberpattern","title":"PartitionNumberPattern ( numberFormat, x )","titleHTML":"PartitionNumberPattern ( numberFormat, x )","number":"4.1.1.5"},{"type":"clause","id":"sec-numberformat-abstracts","titleHTML":"Abstract Operations for NumberFormat Objects","number":"4.1.1"},{"type":"clause","id":"numberformat-objects","titleHTML":"NumberFormat Objects","number":"4.1"},{"type":"op","aoid":"ResolvePlural","refId":"sec-resolveplural"},{"type":"clause","id":"sec-resolveplural","title":"ResolvePlural ( pluralRules, n )","titleHTML":"ResolvePlural ( pluralRules, n )","number":"4.2.1.1","referencingIds":["_ref_347","_ref_348"]},{"type":"op","aoid":"ResolvePluralRange","refId":"sec-resolvepluralrange"},{"type":"clause","id":"sec-resolvepluralrange","title":"ResolvePluralRange ( pluralRules, x, y )","titleHTML":"ResolvePluralRange ( pluralRules, x, y )","number":"4.2.1.2"},{"type":"clause","id":"sec-intl-pluralrules-abstracts","titleHTML":"Abstract Operations for PluralRules Objects","number":"4.2.1"},{"type":"clause","id":"pluralrules-objects","titleHTML":"PluralRules Objects","number":"4.2"},{"type":"clause","id":"sec-decimal-intl","titleHTML":"Amendments to the ECMAScript® 2024 Internationalization API Specification","number":"4"},{"type":"clause","id":"sec-copyright-and-software-license","title":"Copyright & Software License","titleHTML":"Copyright & Software License","number":"A"}]}`); ;let usesMultipage = false