decimal32
Decimal32 is one of the decimal floating-point formats defined by the IEEE 754-2008 standard. It represents decimal numbers with about seven decimal digits of precision, offering a compact option for decimal arithmetic in memory-constrained environments. It is part of the decimal family that also includes decimal64 (16 digits) and decimal128 (34 digits), providing different trade-offs between precision and range.
The 32-bit representation encodes a sign, an exponent, and a significand. The significand stores the decimal
Decimal32 supports the standard IEEE 754 rounding modes, including round-to-nearest with ties to even, as well
Use cases for decimal32 focus on scenarios where memory efficiency is important but decimal precision is required,