Overview
| Artifact ID: | fcf3b0ba11bf80c3e3141bcd4b9be1332b83382c |
|---|---|
| Ticket: | 852280ffffffffffffffffffffffffffffffffff
binary format conversion error |
| User & Date: | nobody on 2003-12-01 19:57:40 |
Changes
- assignee changed to: "hobbs"
- cmimetype changed to: "text/plain"
- comment changed to:
Hi all ! I am using Linux 9 w Tcl 8.4.4.-34. Got a funny mistake from Tcl, maybe the new release fixes it, haven't checked it yet. Trying to convert string to binary double, 32Bit-float like this: set datei [open "test.bin" w] puts -nonewline $datei [binary format "f" [format "% E" 0.3705]] close $datei Problem: binary number yields 0.1869516 ! Also tried: "0.3705" "3.705E-1" instead of 0.3705 but problems still there. However, only some numbers are converted wrongly. E.g. 0.364 converts correctly ! To me, it looks arbitrary, but I see it on all my graphs (Exporting data from my db to scilab). Therefore I need exactly this binary format, no other avail. Ok. Trying new version but don't think this bug is resolved. Thanks in advance for the help Bjoern
- foundin changed to: "obsolete: 8.4.4"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "11. Conversions from String"
- title changed to: "binary format conversion error"
- type changed to: "Bug"