Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 41089a4f69603c86f14577df201648c347cb37bc
Ticket: 551154ffffffffffffffffffffffffffffffffff
[string is double] accepts 'd' and 'D'
User & Date: johnseal on 2002-05-01 20:46:51
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed 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 changed to: "obsolete: 8.3.4"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "johnseal"
  9. subsystem changed to: "18. Commands M-Z"
  10. title changed to: "[string is double] accepts "d" and "D""
  11. type changed to: "Bug"