Update float.rs
This commit is contained in:
parent
8b12e6a6c6
commit
c38bbfe11c
|
@ -1802,7 +1802,7 @@ pub trait Float: Num + Copy + NumCast + PartialOrd + Neg<Output = Self> {
|
||||||
/// assert!(n.imag() == 0.0f64);
|
/// assert!(n.imag() == 0.0f64);
|
||||||
/// ```
|
/// ```
|
||||||
fn imag(self) -> Self {
|
fn imag(self) -> Self {
|
||||||
Self::zero()
|
self * Self::zero()
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns the mantissa, base 2 exponent, and sign as integers, respectively.
|
/// Returns the mantissa, base 2 exponent, and sign as integers, respectively.
|
||||||
|
|
Loading…
Reference in New Issue