diff --git a/fixed_wide/src/fixed.rs b/fixed_wide/src/fixed.rs index ab18621..52284d9 100644 --- a/fixed_wide/src/fixed.rs +++ b/fixed_wide/src/fixed.rs @@ -12,6 +12,8 @@ impl Fixed{ pub const ZERO:Self=Self{bits:BInt::::ZERO,frac:PhantomData}; pub const ONE:Self=Self{bits:BInt::::ONE.shl(Frac::U32),frac:PhantomData}; pub const NEG_ONE:Self=Self{bits:BInt::::NEG_ONE.shl(Frac::U32),frac:PhantomData}; + pub const MAX:Self=Self{bits:BInt::::MAX,frac:PhantomData}; + pub const MIN:Self=Self{bits:BInt::::MIN,frac:PhantomData}; } impl From for Fixed