Fixed float.rs
This commit is contained in:
parent
88029f5786
commit
f06b736e02
|
@ -1842,7 +1842,7 @@ pub trait Float: Num + Copy + NumCast + PartialOrd + Neg<Output = Self> {
|
||||||
if self >= Self::zero() {
|
if self >= Self::zero() {
|
||||||
Self::zero()
|
Self::zero()
|
||||||
} else {
|
} else {
|
||||||
Self::from(f64::consts::PI)
|
Self::from(f64::consts::PI).unwrap()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue