diff options
author | Rob Pike <r@golang.org> | 2008-06-08 19:37:22 -0700 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2008-06-08 19:37:22 -0700 |
commit | ba4f9771c5f9f0bf4d11ee23d603764341ba501a (patch) | |
tree | d74ec8d360fb9da23baec776fc405f7e4523ed58 /test/float_lit.go | |
parent | 9403981fdbe3c8e043f1c2694ae8f1d1387c6323 (diff) | |
download | go-ba4f9771c5f9f0bf4d11ee23d603764341ba501a.tar.gz |
fix bug in closeness for float literal test
SVN=121628
Diffstat (limited to 'test/float_lit.go')
-rw-r--r-- | test/float_lit.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/float_lit.go b/test/float_lit.go index c45de9b4c..a7ef12390 100644 --- a/test/float_lit.go +++ b/test/float_lit.go @@ -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; |