The amount of numbers between 0 and infinity is infinity, it’s mathematically impossible to get the smallest number right before infinity because the numbers go on forever
There is no number before infinity . It is possible to represent infinity minus one as a mathematical expression, but it does not actually equal anything or have any real mathematical value.
Infinity is a concept, not a number, it is used to say that there is an endless amount of something.
Here, In Code, I guess you can say 2^1024 = math.huge = inf, which 2^1024 is where numbers become “infinity”, so about anything below 2^1024 wont be infinity, but as far as im concerned, 1.7976931348622742e+308 would be pretty close (its the closest I could get), which is a very big number.
But either way, it would be sort of difficult considering how many numbers are accounted for before reaching that number.
The maximum value you’ll be able to use with built-in numbers is the 64-bit float limit: 2^1023 * (1 + (1 - 2^-52)) which is 1.7976931348623157e+308.
The thing is though is that when you add 1 to a float that big, the operation does nothing due to the precision of the numbers. You only get about 15/16 digits of precision before this happens. E.g.