envzn
0.8 · beta · not released

Library / System / Codecs / DecimalCodec

CLASS

DecimalCodec

The inbound half of the decimal128 IEEE 754-2008 BID (Binary Integer Decimal) 128-bit wire codec.

Methods 1

METHOD bidToParts(REFERENCE ByteBuffer bb) RETURNS | DecimalParts
reads

Decode 16 big-endian IEEE BID bytes into (coefficient, exponent). Fallible: wrong length, the non-canonical "11" combination form, an out-of-range biased exponent, or a coefficient of more than 34 digits.