From ba4f9771c5f9f0bf4d11ee23d603764341ba501a Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Sun, 8 Jun 2008 19:37:22 -0700 Subject: fix bug in closeness for float literal test SVN=121628 --- test/float_lit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/float_lit.go') 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; -- cgit v1.2.1