IEEE arithmetic in Oracle's Numerical Computation Guide Created 2026-10-24 Updated 2026-11-05
Official technical manual: IEEE Arithmetic.
Relevant locators: IEEE Arithmetic Model, significand precision and overall bit count; Double Format, field layout and Table 2-5; and Ranges and Precisions in Decimal Representation. The source describes the traditional IEEE double format, now called binary64. It supports the precision and storage calculations for the double-precision floating-point format; no claim about a current processor's execution speed is inferred.
JSON 2026-11-05
JSON, short for JavaScript Object Notation, is a textual data interchange format used for serialization. Its values are objects, arrays, strings, numbers, Boolean values and
null. Object member names are strings; array elements are ordered. A complete JSON text may represent a single value, including a number or string.[ref]The format's syntax and an implementation's numerical precision are separate. For an original example, consider
{"n":9007199254740993}. A JavaScript call to JSON.parse produces a Number whose decimal value is 9007199254740992; the requested integer has rounded to in the double-precision floating-point format. The same input decoded by Python's default json.loads retains the integer 9007199254740993 exactly.Encoding the digits as
{"n":"9007199254740993"} preserves them as a string in both examples, but changes the represented type. Any later numerical interpretation needs an agreed rule. RFC8259 identifies the integer interval for exact agreement with commonly used numerical implementations; it does not restrict valid JSON numerals to that interval.[ref]The JavaScript Object Notation (JSON) Data Interchange Format. §6: number magnitude, precision and interoperability
Choose the reciprocal-factorial summation
eb for asymptotically high accuracy, counting multiplications and divisions as arithmetic work. For tolerance , linear powering in part (a)(i) takes multiplications; binary exponentiation in part (a)(ii) reduces this to . Part (c) also has arithmetic work, since its required grows like , though its constants and cancellation error differ.By the reciprocal-factorial series remainder bound, the omitted positive tail satisfiesThus the factorial denominator grows much faster than an exponential in the number of iterations. For decimal places, setting of order gives by Stirling's approximation, rather than binary-power arithmetic steps. This is a comparison in an exact-arithmetic operation-count model; the stated Big O notation does not determine the exact winner for every small tolerance. Taken literally,
eb uses zero multiplications and only divisions. Fixed double-precision floating-point format cannot deliver arbitrarily many correct decimal places, and the precision-dependent cost of arbitrary-precision arithmetic is a separate issue.About five steps are certified by the uniform worst-case estimate; the actual iteration reaches double-precision accuracy in about four. Put . The initial enclosure gives , and repeated squaring yieldsFor this is about , while for it is below . Thus five ideal-arithmetic steps push this bound well below the approximately relative resolution of double-precision floating-point format.
The bound is conservative. Factoring identifiesHigh-precision evaluation of the actual successive errors gives approximately , , , and . Thus the fourth step would already exceed double-precision accuracy in exact arithmetic. In floating-point evaluation, cancellation in the residual and other roundoff errors prevent the subsequent theoretical digits from being realized.
With the gap-at-one convention, machine epsilon is the difference between and the next larger representable floating-point number. The double-precision floating-point format has 53 significant binary digits, including the implicit leading digit, soA related convention uses unit roundoff, the worst relative rounding scale for round-to-nearest: . Stating the convention distinguishes these two common values.[ref]
IEEE arithmetic in Oracle's Numerical Computation Guide. Chapter 2, IEEE Arithmetic Model; Double Format and Table 2-5