summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2015-06-20 20:44:17 (GMT)
committerKevin B Kenny <kennykb@acm.org>2015-06-20 20:44:17 (GMT)
commitaf46fd5b12c1265e04beeab0871ce9207e86c7a9 (patch)
treebbd9845eb037231f2b5cb390052f77e653fd6ceb /tests
parent69ead1ea0999daf76ab2e38733cdd63fc979ad8f (diff)
downloadtcl-af46fd5b12c1265e04beeab0871ce9207e86c7a9.zip
tcl-af46fd5b12c1265e04beeab0871ce9207e86c7a9.tar.gz
tcl-af46fd5b12c1265e04beeab0871ce9207e86c7a9.tar.bz2
Make sure that an input lying precisely 1/2 ULP between two floating point values is rounded to even.
Diffstat (limited to 'tests')
-rw-r--r--tests/expr.test4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/expr.test b/tests/expr.test
index 6ad7208..4c03262 100644
--- a/tests/expr.test
+++ b/tests/expr.test
@@ -7174,6 +7174,10 @@ test expr-50.1 {test sqrt() of bignums with non-Inf answer} {
expr {sqrt("1[string repeat 0 616]") == 1e308}
} 1
+test expr-51.1 {test round-to-even on input} {
+ expr 6.9294956446009195e15
+} 6929495644600920.0
+
# cleanup