1
0
mirror of https://github.com/golang/go synced 2024-11-21 22:04:39 -07:00

fix bug in closeness for float literal test

SVN=121628
This commit is contained in:
Rob Pike 2008-06-08 19:37:22 -07:00
parent 33f7637d6a
commit 3086910f17
2 changed files with 1 additions and 3 deletions

View File

@ -23,7 +23,7 @@ close(a, b double) bool
if e < 0 {
e = -e;
}
if e*1.0e-14 < d {
if e*1.0e-14 > d {
return true;
}
return false;

View File

@ -2,8 +2,6 @@
=========== ./char_lit.go
=========== ./float_lit.go
+10. is printfloat should be printfloat
BUG: known to fail incorrectly
=========== ./for.go