Posts: 2,628
Threads: 32
Joined: Apr 2007
Reputation:
0
If you had the float value 3.1, the format %01.2f would set the string to "03. 1", which is not what you want.
The way it works, is that you put a 0 in front of a number. That number is the minimum amount of digits. %04f would always return a float with the format XXXX.XXXXX (standard 5 decimals), while the format %04.02f would always return a float with the format XXXX.XX.
Posts: 943
Threads: 218
Joined: Jul 2012
Reputation:
0
anyone help it isnt 100.0..
Posts: 943
Threads: 218
Joined: Jul 2012
Reputation:
0
it isnt bump..i posted yesterday last time.
please anyone help it isnt 100.0 and i cant make it 100.0