Skip to main content

real

Represents floating-point numbers (numbers with fractional parts). Uses IEEE 754 double-precision semantics.

  • Precision: ~15-17 decimal digits
  • Range: approximately
    • Minimum positive normalized: 2.2250738585072014e-308
    • Maximum: 1.7976931348623157e308
  • Subnormal numbers: supported down to ~5e-324.
  • Rounding errors: Arithmetic may introduce small imprecisions.
  • Overflow behavior: Results in Infinity or -Infinity.

Constructors

real() -> real

Constructs a new real instance.

real(real other) -> real

Copies a real instance.

Parameters

  • other: The real instance to copy.

real(const Number bn) -> real

Constructs a real from a Boxed_Number.

Parameters

  • bn: The Boxed_Number to convert.