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

obsolete: 8.6b2
open
5
2012-08-25
2012-08-25
Dave Burns
No

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.

Discussion

  • Dave Burns

    Dave Burns - 2012-08-25

    Test script

     
  • Dave Burns

    Dave Burns - 2012-08-25

    "testit" results from 64bit Windows 7 machine