Constant MIN_DECIMAL32_FOR_EACH_PRECISION
pub const MIN_DECIMAL32_FOR_EACH_PRECISION: [i32; 10];
Expand description
MIN_DECIMAL32_FOR_EACH_PRECISION[p]
holds the minimum ialue that can be stored in a [
Decimal32] 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!(MIN_DECIMAL32_FOR_EACH_PRECISION[3], -999);