I was looking at the output from the code below. When I increment 1 to the maximum value of float, the output seems to be what I would expect, but when I do x=x*1.5, then I see inf as the output which I would assume is the float overflow. My question is, at what upper limit does it go from expected output to inf?
x=sys.float_info.max
x=x+1
x
x ** 2gets an error, butx * xdoes not.xfor whichsys.float_info.max + xisinf?