Module decimal

Source
Expand description

Functions and types related to the mysql decimal type.

Structs§

Decimal
MySql decimal.
ParseDecimalError

Constants§

DIG_BASE
Base of the Digit.
DIG_PER_DEC
Number of decimal digits per Digit.
DIG_TO_BYTES
Number of bytes required to store given number of decimal digits.
POWERS_10

Functions§

decimal_bin_size
Returns binary representation size (in bytes) for given precision and scale.

Type Aliases§

Digit
Type of a base 9 digit.