Skip to content
Tcl Source Code History Of Ticket 551154ffffffffff
Login

History Of Ticket 551154ffffffffff

Artifacts Associated With Ticket 551154ffffffffff

  1. Ticket change [41089a4f69] (rid 116108) by johnseal on 2002-05-01 20:46:51:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      [string is double] accept "d" or "D" at some places within a number, but not at others.
      
      % info patchlevel
      8.3.4
      (bin) 2 % string is double 1234
      1
      (bin) 3 % string is double d1234
      0
      (bin) 4 % string is double 1d234
      1
      (bin) 5 % string is double 12d34
      1
      (bin) 6 % string is double 123d4
      1
      (bin) 7 % string is double 1234d
      0
      (bin) 8 % string is double 1d2d3d4
      0
      (bin) 9 % string is double 1D234
      1
      
      I don't think the "d" is being interpreted as the radix point; see the examples below. Kevin Kenny 
      suggests "d" may be allowed as a synonym for "e" to mark the exponent, and that seems consistent with 
      the behavior.
      
      % parray tcl_platform
      tcl_platform(byteOrder) = littleEndian
      tcl_platform(machine)   = intel
      tcl_platform(os)        = Windows NT
      tcl_platform(osVersion) = 4.0
      tcl_platform(platform)  = windows
      tcl_platform(user)      = sealj
      (bin) 2 % string is double 1.234
      1
      (bin) 3 % string is double 1.2d34
      1
      (bin) 4 % string is double 1.23d4
      1
      (bin) 5 % string is double 1.234d
      0
      (bin) 6 % string is double 1.d234
      1
      
    4. foundin initialized to: "obsolete: 8.3.4"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "johnseal"
    9. subsystem initialized to: "18. Commands M-Z"
    10. title initialized to: "[string is double] accepts "d" and "D""
    11. type initialized to: "Bug"
  2. Ticket change [60bd2a556d] (rid 92120) by dkf on 2002-05-02 16:02:21:

    1. closedate changed to: "2002-05-02T09:02:21"
    2. closer changed to: "dkf"
    3. icomment:
      Logged In: YES 
      user_id=79902
      
      It looks like your platform's strtod() thinks that 'd' (for
      double?) is a synonym for 'e'; it might accept 'f' too (for
      float.)  Can Tcl actually perform arithmetic operations on
      1.23d4 ?  If so (easier for you to check than me as my libc
      doesn't know the format) then I'll leave it for now since
      the point of [string is] is really to check whether Tcl will
      barf on the string later on.
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Wont Fix"
    7. status changed to: "Pending"
    8. title changed to: "[string is double] accepts "d" and "D""
    9. username: "dkf"
  3. Ticket change [77c30855f5] (rid 89826) by johnseal on 2002-05-02 18:52:46:

    1. icomment:
      Logged In: YES 
      user_id=231769
      
      Seems to work OK with "d" present:
      
      % expr 1.23d4 + 0.7d4
      19300.0
      
      
      
    2. login: "johnseal"
    3. mimetype: "text/plain"
    4. status changed to: "Open"
    5. title changed to: "[string is double] accepts "d" and "D""
    6. username: "johnseal"
  4. Ticket change [dd28515a0a] (rid 114613) by dkf on 2002-05-02 19:52:11:

    1. assignee changed to: "hobbs"
    2. icomment:
      Logged In: YES 
      user_id=79902
      
      Oh well, fixing this (if it is even something that should be
      fixed, which I personally doubt since some people might
      expect it to work given their platform's strtod() behaviour)
      would require using the right "compatability" strtod()
      implementation, which is an area I don't understand. Handing
      off to Jeff who can resolve this as he sees fit, either by
      modifying the documentation or by modifying makefile.vc to
      ask for the compat version of strtod().
      
      As a side note, the Tcl_GetDoubleFromObj manpage could do
      with the format of an acceptable string shifting over from
      Tcl_GetDouble...
      
      
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. subsystem changed to: "53. Configuration and Build Tools"
    6. title changed to: "[string is double] accepts "d" and "D""
    7. username: "dkf"
  5. Ticket change [de0893248f] (rid 114780) by dkf on 2003-02-25 16:26:22:

    1. title changed to: "[string is double] accepts 'd' and 'D'"
  6. Ticket change [2ba3b0bef1] (rid 118774) by dgp on 2006-03-10 23:02:00:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2006-03-10T16:02:00"
    3. closer changed to: "dgp"
    4. icomment:
      Logged In: YES 
      user_id=80530
      
      
      This is fixed in Tcl 8.5
      with the use of strtod()
      removed.
      
      
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. status changed to: "Closed"
    8. username: "dgp"