Overview
| Artifact ID: | bafee56b8d66c746c9c768af2c1ee35725d359d5 |
|---|---|
| Ticket: | 1497990fffffffffffffffffffffffffffffffff
expr sqrt(2) returns 1,41421356237.0 after loading and using |
| User & Date: | ghanke on 2006-05-31 07:28:22 |
Changes
- assignee changed to: "dgp"
- cmimetype changed to: "text/plain"
- comment changed to:
TCL-Version: 8.4.13 OS: Windows 2000 SP4 / Windows XP SP2 Locale Settings: DE - decimal symbol: , - digit grouping symbol . After loading and using some packages the float arithmetic is dead... puts [expr sqrt(2)] # => 1,41421356237.0 In consequence tkcon (and any text widget too) is annoying me with errors... This occurs rarely. On Win 2000 SP4 with tcom creating wmi objects, and with tclodbc when using the ODBC driver "Pervasive ODBC Client Interface" ve SQL affected fresh compiled TCL 8.4.12 (msys-mingw8) has this bug too. The problem disappears using "." for decimal symbol (Windows Control Center) After some investigation I figure out this is not a TCL bug but a bug in the sprintf function. This function returns sometimes a ',' as decimal point Perhaps take a hammer and blast them: Insert in generic/tclUtil.c (Tcl_PrintDouble) something like if (*p == ',') { *p = '.'; } ... Greetings Goeran - foundin changed to: "obsolete: 8.4.13"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "ghanke"
- subsystem changed to: "48. Number Handling"
- title changed to:
expr sqrt(2) returns 1,41421356237.0 after loading and using
- type changed to: "Bug"