use crate::{
+ prim::PrimFloat,
scalar::Value,
traits::{ConvertFrom, ConvertTo, Float},
};
)
}
pub fn trunc(self) -> Self {
- #[cfg(feature = "std")]
- return f32::from(self).trunc().to();
- #[cfg(not(feature = "std"))]
- todo!();
+ return PrimFloat::trunc(f32::from(self)).to();
}
pub fn ceil(self) -> Self {
#[cfg(feature = "std")]