Skip to main content

D1

Type Alias D1 

Source
pub type D1 = Decimal32<1>;
Expand description

A Decimal32 type with one significant figure after the decimal point.

use high_roller::decimal::D1;

assert_eq!(D1::MAX.get(), 214748364.7_f64);
assert_eq!(D1::MIN.get(), -214748364.8_f64);
assert_eq!(D1::MIN_UNIT.get(), 0.1_f64);

Aliased Typeยง

pub struct D1(/* private fields */);