Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6d66cf06b0c60689562610e90ad2450d34b03b2c
Ticket: 523537ffffffffffffffffffffffffffffffffff
[expr], [string is double] disagree
User & Date: dgp on 2002-02-27 19:05:32
Changes

  1. assignee changed to: "mdejong"
  2. cmimetype changed to: "text/plain"
  3. 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.
    
    
  4. foundin changed to: "obsolete: 8.4a4"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "dgp"
  9. subsystem changed to: "52. Portability Support"
  10. title changed to: "[expr], [string is double] disagree"
  11. type changed to: "Bug"