Commit 3086910f authored by Rob Pike's avatar Rob Pike

fix bug in closeness for float literal test

SVN=121628
parent 33f7637d
......@@ -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;
......
......@@ -2,8 +2,6 @@
=========== ./char_lit.go
=========== ./float_lit.go
+10. is printfloat should be printfloat
BUG: known to fail incorrectly
=========== ./for.go
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment