Update math_ext.rs

This commit is contained in:
Viktor Zoutman 2020-11-18 16:14:19 +01:00 committed by GitHub
parent 63b28d057d
commit da0453d356
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,7 +78,7 @@ impl MathExt for f32 {
} }
fn fract(self) -> f32 { fn fract(self) -> f32 {
self - self.floor() self - self.trunc()
} }
fn signum(self) -> f32 { fn signum(self) -> f32 {