Computer >> Computer tutorials >  >> Programming >> Python

What is the maximum value of float in Python?


In sys module, a struct sequence (tuple of named elements) called float_info has been defined. In this structure, an element max returns maximum representable finite float number.

>>> import sys
>>> sys.float_info.max
   1.7976931348623157e+308