Added unit errors

This commit is contained in:
2023-04-10 18:47:00 -07:00
parent fbc0a6557e
commit 6ce4451db7
4 changed files with 27 additions and 2 deletions

View File

@ -111,6 +111,7 @@ impl Quantity {
pub fn is_negative(&self) -> bool { self.v.is_negative() }
pub fn is_positive(&self) -> bool { self.v.is_positive() }
pub fn unitless(&self) -> bool { self.u.unitless() }
pub fn unit(&self) -> &Unit { &self.u }
quant_foward!(fract);
quant_foward!(abs);