The ABDK Math Quad library operates on IEEE 754 quadruple precision (128-bit) floating point numbers, represented as bytes16 in Solidity.
Technical Specifications:
- Sign bit: 1 bit
- Exponent: 15 bits
- Significand precision: 113 bits (112 explicitly stored)
- Decimal Precision: 33 to 36 significant digits
- Minimum strictly positive (subnormal) value:
2^−16494 ≈ 10^−4965 - Minimum positive normal value:
2^−16382 ≈ 3.3621 × 10^−4932 - Maximum representable value:
2^16384 − 2^16271 ≈ 1.1897 × 10^4932
Supported Special Values:
NaN (not a number)+Infinity-Infinity0 (positive zero)-0 (negative zero)