add val method

master
elfeiin 2024-04-27 21:44:44 -07:00
parent 5da5d770d9
commit 1f54af9752
Signed by: elfein
GPG Key ID: A53FDD4FD091A276
1 changed files with 4 additions and 0 deletions

View File

@ -43,6 +43,10 @@ impl<
U: Unit<Self> {
self.0.sub(U::offset()).div(U::scale())
}
pub fn val(self) -> f64 {
self.0
}
}
impl<