--- a/rust/fpnum/src/lib.rs Fri Nov 02 15:48:58 2018 +0100
+++ b/rust/fpnum/src/lib.rs Fri Nov 02 17:03:58 2018 +0100
@@ -55,6 +55,11 @@
}
#[inline]
+ pub fn abs_round(&self) -> u32 {
+ (self.value >> 32) as u32
+ }
+
+ #[inline]
pub fn sqr(&self) -> Self {
Self {
is_negative: false,