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

Updated on: 30-Jul-2019

583 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements