chirpyform
Programmer
Hi,
I would like to know if there exists an option with sprintf which gets rid of the insignificant zeros right of the decimal point.
At the moment I have :
print curKey,sprintf("%-6.6f",Sum[curKey])
but unfortunately that gives what I want left of the decimal point but always 6 numbers right of the decimal point.
I saw that there is an option 'g' but I can't get it to work.
It is extremely important .....
Thanks
Chris
I would like to know if there exists an option with sprintf which gets rid of the insignificant zeros right of the decimal point.
At the moment I have :
print curKey,sprintf("%-6.6f",Sum[curKey])
but unfortunately that gives what I want left of the decimal point but always 6 numbers right of the decimal point.
I saw that there is an option 'g' but I can't get it to work.
It is extremely important .....
Thanks
Chris