Artifacts Associated With Ticket 551154ffffffffff
Ticket change [41089a4f69] (rid 116108) by johnseal on 2002-05-01 20:46:51:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- 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
- foundin initialized to: "obsolete: 8.3.4"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "johnseal"
- subsystem initialized to: "18. Commands M-Z"
- title initialized to: "[string is double] accepts "d" and "D""
- type initialized to: "Bug"
Ticket change [60bd2a556d] (rid 92120) by dkf on 2002-05-02 16:02:21:
- closedate changed to: "2002-05-02T09:02:21"
- closer changed to: "dkf"
- 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.
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Wont Fix"
- status changed to: "Pending"
- title changed to: "[string is double] accepts "d" and "D""
- username: "dkf"
Ticket change [77c30855f5] (rid 89826) by johnseal on 2002-05-02 18:52:46:
- icomment:
Logged In: YES user_id=231769 Seems to work OK with "d" present: % expr 1.23d4 + 0.7d4 19300.0
- login: "johnseal"
- mimetype: "text/plain"
- status changed to: "Open"
- title changed to: "[string is double] accepts "d" and "D""
- username: "johnseal"
- icomment:
Ticket change [dd28515a0a] (rid 114613) by dkf on 2002-05-02 19:52:11:
- assignee changed to: "hobbs"
- 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...
- login: "dkf"
- mimetype: "text/plain"
- subsystem changed to: "53. Configuration and Build Tools"
- title changed to: "[string is double] accepts "d" and "D""
- username: "dkf"
Ticket change [de0893248f] (rid 114780) by dkf on 2003-02-25 16:26:22:
- title changed to: "[string is double] accepts 'd' and 'D'"
Ticket change [2ba3b0bef1] (rid 118774) by dgp on 2006-03-10 23:02:00:
- assignee changed to: "dgp"
- closedate changed to: "2006-03-10T16:02:00"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 This is fixed in Tcl 8.5 with the use of strtod() removed.
- login: "dgp"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "dgp"