Categories
How to add signs to the fractional part?
Perhaps a stupid question, but you need to add fractional signs to the number, how to do this, I googled, but did not find it? Example (from 1024 get 1024.000)
Answer the question
In order to leave comments, you need to log in
i = float(1024). Or do you need a formatted output?
print '%.3f' % 1024
a = float(1024.123)
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question