Constant MAX_DECIMAL64_FOR_EACH_PRECISION
pub const MAX_DECIMAL64_FOR_EACH_PRECISION: [i64; 19];
Expand description
MAX_DECIMAL64_FOR_EACH_PRECISION[p]
holds the maximum i64
value that can
be stored in Decimal64
value of precision p
.
§Notes
The first element is unused and is inserted so that we can look up using precision as the index without the need to subtract 1 first.
§Example
assert_eq!(MAX_DECIMAL64_FOR_EACH_PRECISION[3], 999);