A 32-bit float only has six significant digits of precision.
Having said that, you can control the number of digits printed by using format:
Code: Select all
>>> print('{:.8f}'.format(50.12025733333333))
50.12025733
(that was using the unix version). On a pyboard you'll get:
Code: Select all
>>> print('{:.8f}'.format(50.12025733333333))
50.12025833
(notice the 833 rather than 733). The answer is still correct to six significant digits (2 before the decimal and 4 after in this case). If you print any more than that they'll only be correct some of the time.
Here's a link to the format specification (the :.8f portion):
https://docs.python.org/3.4/library/str ... formatspec