How do I format numbers?
For example I want to do something like "%5.2f".
5.1, 12.05 and 3.006 should be " 5.10", "12.05" and " 3.01". keep in mind the spaces.
I know how to work around that, but it doesn't seem elegant enough.
My problem might seem similar to:
but it's not the same ^^ I don't want "at most" 2 decimal points. I want it to be constant. round(number*100)/100 won't work, because 1 would be still 1, not 1.00, also it doesn't help me with spaces.