In [1]:
import sys
In [2]:
print(sys.float_info)
In [3]:
print(type(sys.float_info))
In [4]:
print(sys.float_info.max)
In [5]:
print(1.8e+308)
In [6]:
print(type(1.8e+308))
In [7]:
print(sys.float_info.max.hex())
In [8]:
print(-sys.float_info.max)
In [9]:
print(-1.8e+308)
In [10]:
print(type(-1.8e+308))
In [11]:
print(sys.float_info.min)
In [12]:
print(sys.float_info.min.hex())
In [13]:
print(float.fromhex('0x0.0000000000001p-1022'))
In [14]:
print(format(float.fromhex('0x0.0000000000001p-1022'), '.17'))
In [15]:
print(1e-323)
In [16]:
print(1e-324)