add ceil and floor
[vector-math.git] / src / scalar.rs
index 3011df707fc97c6e31cdcb430d504652c7cea0d5..b15388b24ef6473abab300da2fcfea8e5a3a83f1 100644 (file)
@@ -368,13 +368,13 @@ macro_rules! impl_float {
                 #[cfg(feature = "std")]
                 return Value(self.0.ceil());
                 #[cfg(not(feature = "std"))]
-                todo!();
+                return crate::algorithms::base::ceil(Scalar, self);
             }
             fn floor(self) -> Self {
                 #[cfg(feature = "std")]
                 return Value(self.0.floor());
                 #[cfg(not(feature = "std"))]
-                todo!();
+                return crate::algorithms::base::floor(Scalar, self);
             }
             fn round(self) -> Self {
                 #[cfg(feature = "std")]