diff options
author | Kevin B Kenny <kennykb@acm.org> | 2015-06-20 20:44:17 (GMT) |
---|---|---|
committer | Kevin B Kenny <kennykb@acm.org> | 2015-06-20 20:44:17 (GMT) |
commit | af46fd5b12c1265e04beeab0871ce9207e86c7a9 (patch) | |
tree | bbd9845eb037231f2b5cb390052f77e653fd6ceb /tests/expr.test | |
parent | 69ead1ea0999daf76ab2e38733cdd63fc979ad8f (diff) | |
download | tcl-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/expr.test')
-rw-r--r-- | tests/expr.test | 4 |
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 |