Overview
| Artifact ID: | 7fa455b64fcc83102aee65f2e45669040b61c2b7 |
|---|---|
| Ticket: | 2828631fffffffffffffffffffffffffffffffff
expr return value |
| User & Date: | dkf on 2009-07-29 04:49:34 |
Changes
- icomment:
The issue is that 8.5 uses different rounding by default when converting doubles to strings, not that 8.5 has suddenly become less accurate (the deep problem is that 0.35, 0.45 and 0.15 do not have finite expansions in IEEE binary arithmetic). Compare these two logs and notice that the values are actually the same except for the different number of decimal places. % info patch 8.4.7 % expr 0.8 - 0.35 0.45 % expr 0.6 - 0.15 0.45 % expr 0.8 - 0.35 - 0.45 5.55111512313e-17 % expr 0.6 - 0.15 - 0.45 -5.55111512313e-17 % info patch 8.5.2 % expr 0.8 - 0.35 - 0.45 5.551115123125783e-17 % expr 0.6 - 0.15 - 0.45 -5.551115123125783e-17 I'll let dgp suggest a workaround for you.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"