Jan-28-2018, 09:23 PM
(This post was last modified: Jan-28-2018, 09:24 PM by Gribouillis.)
(Jan-28-2018, 09:03 PM)Barnettch3 Wrote: It just seems like a bug and was wondering if anyone else had experience with something like this.
If there is a bug, it is in your code, it is not in the python interpreter. The round function does exactly what the documentation says.
If you are experimenting errors with formatting, then you need the format method. For example the line
print(F*100, "%")is better written
print('{:.2f} %'.format(F*100))Can you describe the issue more precisely or give a code that we can run to see the pathological behavior?