rust/fpnum/src/lib.rs
changeset 14086 5d42204ac35e
parent 13944 665b4c6612ee
child 14127 c27461e6a9eb
--- 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,