Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2007-09-09
23:47 • Closed ticket [1724437fff]: mathop cmd results depend on compiler plus 7 oth... artifact: 561fa69e97 user: dgp
23:47 • Add attachment 1724437.patch to ticket [1724437fff] artifact: 19b2043bd5 user: dgp
2007-05-23
19:11 • New ticket [1724437fff] mathop cmd results depend on compiler. artifact: f07eec0f21 user: dgp

mathop cmd results depend on compiler

Closed / Fixed1724437fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 19 years ago
Descriptionplain2007-05-23 19:11:46
% namespace import ::tcl::mathop::+
% + 1e-18 1 -1
1e-18
% [format +] 1e-18 1 -1
0.0

The order of operations of the compiled
command differs from that of the
direct eval route, leading to differences
in roundoff errors.
dgpplain2007-09-09 23:47:44
File Added - 244833: 1724437.patch

Logged In: YES 
user_id=80530
Originator: YES


Attached patch that fixes this.
Lacks a test demonstrating the
issue for the "/" operator.
Committing to HEAD.
File Added: 1724437.patch
Log in (anonymous is fine) to add a comment.

Attachments: