Skip to content
Tcl Source Code View Ticket
Login

View Ticket

[format] "-0.000" renders differently 32 vs 64 bit hardware

Open3561500fffffffffffffffffffffffffffffffffCreated 14 years agoUpdated 14 years ago
Descriptionplain2012-08-25 02:12:20
On 32-bit hardware running Windows XP, [format %9.3f "-0.000"] renders "    0.000"
On 64-bit hardware running Windows 7, [format %9.3f "-0.000"] renders "   -0.000"
..i.e. the minus-sign is stripped on 32-bit hardware, while it passes thru on 64 bit machine.
System differences in "sprintf" are said to be the culprit.
Manifest on HP 32-bit machine and Dell 64-bit machine, on Tcl 8.5.9/8.5.10/8.5.11 & Tcl8.6b2 tclkits.
ddburnsplain2012-08-25 09:12:21
File Added - 451911: testit
ddburnsplain2012-08-25 09:13:40
File Added - 451912: old machine testit result.TXT
ddburnsplain2012-08-25 09:14:12
File Added - 451913: new machine result.txt
Log in (anonymous is fine) to add a comment.

Attachments: