1
Fork 0

test: Fix float imprecision error on intrinsics-math

This commit is contained in:
Patrick Walton 2012-12-05 17:54:12 -08:00
parent 674b638385
commit 5bf9e6f58b

View file

@ -57,7 +57,7 @@ fn main() {
assert(exp2f32(10f32) == 1024f32);
assert(exp2f64(50f64) == 1125899906842624f64);
assert(logf32(f32::consts::e) == 1f32);
assert(fabsf32(logf32(f32::consts::e) - 1f32) < 0.000001f32);
assert(logf64(1f64) == 0f64);
assert(log10f32(10f32) == 1f32);