Crate decimus

Source
Expand description

§Decimal Floating-Point Math Library

Structs§

BidUint128
A 128-bit decimal floating-point number represented in binary format.
BidUint192
256-bit decimal floating-point in binary format.
BidUint256
256-bit decimal floating-point in binary format.

Constants§

BID_DENORMAL_EXCEPTION
Denormal exception.
BID_EXACT_STATUS
Flag indicating no exceptions.
BID_INEXACT_EXCEPTION
Inexact exception.
BID_INVALID_EXCEPTION
Invalid exception.
BID_NO_EXCEPTION
No exception.
BID_OVERFLOW_EXCEPTION
Overflow exception.
BID_OVERFLOW_INEXACT_EXCEPTION
Overflow inexact exception.
BID_ROUNDING_DOWN
Rounding towards minus infinity.
BID_ROUNDING_TIES_AWAY
Rounding away from zero.
BID_ROUNDING_TO_NEAREST
Rounding to nearest.
BID_ROUNDING_TO_ZERO
Rounding towards zero.
BID_ROUNDING_UP
Rounding towards plus infinity.
BID_UNDERFLOW_EXCEPTION
Underflow exception.
BID_UNDERFLOW_INEXACT_EXCEPTION
Underflow inexact exception.
BID_ZERO_DIVIDE_EXCEPTION
Zero divide exception.

Functions§

bid128_add
Adds two 128-bit decimal floating-point values.
bid128_div
Divides two 128-bit decimal floating-point values.
bid128_fma
FMA.
bid128_from_int32
Converts signed 32-bit integer into 128-bit decimal floting-point value.
bid128_from_string
Converts a value represented in string format (decimal character sequence) to 128-bit decimal floating-point format (binary encoding).
bid128_is_zero
Returns true if value is zero (+0 or -0).
bid128_mul
Multiplies two 128-bit decimal floating-point values.
bid128_sub
Subtracts two 128-bit decimal floating-point values.
bid128_to_string
Converts a 128-bit decimal floating-point value (binary encoding) to string format (decimal character sequence).

Type Aliases§

BidUint32
A 32-bit decimal floating-point number represented in binary format.
BidUint64
A 64-bit decimal floating-point number represented in binary format.
IdecFlags
Exception flags.
IdecRound
Rounding modes.