+#[cfg(not(feature = "std"))]
+use crate::scalar::{Scalar, Value};
use crate::{
f16::F16,
- scalar::{Scalar, Value},
traits::{ConvertFrom, ConvertTo},
};
use core::{fmt, hash, ops};
}
fn copy_sign(self, sign: Self) -> Self {
#[cfg(feature = "std")]
- return $float::copysign(self);
+ return $float::copysign(self, sign);
#[cfg(not(feature = "std"))]
return crate::algorithms::base::copy_sign(Scalar, Value(self), Value(sign)).0;
}