return PrimFloat::trunc(f32::from(self)).to();
}
pub fn ceil(self) -> Self {
- #[cfg(feature = "std")]
- return f32::from(self).ceil().to();
- #[cfg(not(feature = "std"))]
- todo!();
+ return PrimFloat::ceil(f32::from(self)).to();
}
pub fn floor(self) -> Self {
- #[cfg(feature = "std")]
- return f32::from(self).floor().to();
- #[cfg(not(feature = "std"))]
- todo!();
+ return PrimFloat::floor(f32::from(self)).to();
}
+ /// round to nearest, ties to unspecified
pub fn round(self) -> Self {
- #[cfg(feature = "std")]
- return f32::from(self).round().to();
- #[cfg(not(feature = "std"))]
- todo!();
+ return PrimFloat::round(f32::from(self)).to();
}
#[cfg(feature = "fma")]
pub fn fma(self, a: Self, b: Self) -> Self {