mirror of
https://github.com/golang/go
synced 2024-11-22 03:54:39 -07:00
fix bug in closeness for float literal test
SVN=121628
This commit is contained in:
parent
33f7637d6a
commit
3086910f17
@ -23,7 +23,7 @@ close(a, b double) bool
|
|||||||
if e < 0 {
|
if e < 0 {
|
||||||
e = -e;
|
e = -e;
|
||||||
}
|
}
|
||||||
if e*1.0e-14 < d {
|
if e*1.0e-14 > d {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
@ -2,8 +2,6 @@
|
|||||||
=========== ./char_lit.go
|
=========== ./char_lit.go
|
||||||
|
|
||||||
=========== ./float_lit.go
|
=========== ./float_lit.go
|
||||||
+10. is printfloat should be printfloat
|
|
||||||
BUG: known to fail incorrectly
|
|
||||||
|
|
||||||
=========== ./for.go
|
=========== ./for.go
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user