bbcmicrobit / micropython

Port of MicroPython for the BBC micro:bit
https://microbit-micropython.readthedocs.io
Other
595 stars 287 forks source link

whats the biggest floating point number #777

Closed rhubarbdog closed 1 year ago

rhubarbdog commented 1 year ago

i've tried

import sys
print(sys.float_info)

there is no float info so i need to hard code it or is there another way to determine sys.float_info.max_10_exp

dpgeorge commented 1 year ago

The biggest is about 3e38 (because it's a single precision float).

rhubarbdog commented 1 year ago

thanks

microbit-carlos commented 1 year ago

I'll mark this issue as resolved then, thanks Damien!