Overview
| Artifact ID: | 6d66cf06b0c60689562610e90ad2450d34b03b2c |
|---|---|
| Ticket: | 523537ffffffffffffffffffffffffffffffffff
[expr], [string is double] disagree |
| User & Date: | dgp on 2002-02-27 19:05:32 |
Changes
- assignee changed to: "mdejong"
- cmimetype changed to: "text/plain"
- comment changed to:
% set a 1.5 1.5 % set b 0x1.8p0 0x1.8p0 % expr {$a == $b} 0 % lsort -real [list $a $b] 1.5 0x1.8p0 % expr {$a == $b} 1 % expr {$a + 0} 1.5 % expr {$b + 0} can't use non-numeric string as operand of "+" % string is double $a 1 % string is double $b 1 At issue is whether or not "hexadecimal floating-point literals" are recognized by Tcl as valid floating point values. As more C libraries become C99 compliant, their strtod() will recognize these, but other parts of Tcl do not. Tcl should make one choice or the other and be consistent about it. One answer would be to force pre-C99 behavior by detecting C99 behavior with configure and linking in compat/strtod.c if it is found. - foundin changed to: "obsolete: 8.4a4"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "dgp"
- subsystem changed to: "52. Portability Support"
- title changed to: "[expr], [string is double] disagree"
- type changed to: "Bug"