Hello,
I'm having big trouble finding a formating that fits my needs.
I have to create lists with numbers of maximum 8 characters.
Currently I'm using the "g" formatt,
but my variables "coordx", "coordy" und "coordz" are often close to zero null and in TCL this might give me a number like: 58.88178e-016.
Is there a possibility to force a number to a specific width??
...
thanks in advance
Arno
I'm having big trouble finding a formating that fits my needs.
I have to create lists with numbers of maximum 8 characters.
Currently I'm using the "g" formatt,
Code:
return [format "%8g%8g%8g" $coordx $coordy $coordz]
Is there a possibility to force a number to a specific width??
Code:
0.123456 -> 0.123456
-0.123456 -> -0.12345
58.88178e-016 -> 58.8e-16
-58.88178e-016 -> -58.e-16
thanks in advance
Arno