Update float.rs

This commit is contained in:
YakoYakoYokuYoku 2019-02-09 16:56:37 -03:00 committed by GitHub
parent 8b12e6a6c6
commit c38bbfe11c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1802,7 +1802,7 @@ pub trait Float: Num + Copy + NumCast + PartialOrd + Neg<Output = Self> {
/// assert!(n.imag() == 0.0f64);
/// ```
fn imag(self) -> Self {
Self::zero()
self * Self::zero()
}
/// Returns the mantissa, base 2 exponent, and sign as integers, respectively.