add copy_sign and genericify abs
[vector-math.git] / src / scalar.rs
index 30aaa9e9cfc3eb981da354f0d9bb61aeafc98439..4e5009598aff43900ae158d35d4918c8e0d87140 100644 (file)
@@ -350,7 +350,7 @@ macro_rules! impl_float {
                 #[cfg(feature = "std")]
                 return Value(self.0.abs());
                 #[cfg(not(feature = "std"))]
-                todo!();
+                return crate::algorithms::base::abs(Scalar, self);
             }
             fn trunc(self) -> Self {
                 #[cfg(feature = "std")]