Hi guys,
I need to have 00.00(4 digit number 00 decimal and 2 fraction digists). What can be used from the QString or other classes that can help me to cut or extend these number, so I always have the for digit number, for example:
1.23 -> 01.23
0.3 -> 00.30
12.3 -> 12.30
0 -> 00.00
12.3333 -> 12.33
1.444-> 01.44
etc.
Format "%4.2f" does this:
12.3 -> 12.30
1.3333->1.33
but can't handle:
1.33 -> 01.33
1.3 -> 01.30
It add 0 to the fraction , but never add 0 at the beginning of the number.
Thanks
Maverick
Bookmarks