+ 2
Is this thing really infinity?
How can a pc make an infinite calculation it's not possible? Why is it saying infinity? https://code.sololearn.com/WCHaBSa11LZ7/
6 Respuestas
+ 4
> Lord Krishna v@msi but if the device is better does it make the real calculation
Come again? The code i shared actually gets run as needed. There's no, "more powerful or modern device won't run, or not do the calculation". Any large number will simply return infinity.
+ 3
Actually maxnumber is 2^1024.
Try
alert(Math.pow(2, 1024)) #returns infinity on my device
or
alert(Number.MAX_VALUE)
Source:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_VALUE
+ 2
Lord Krishna ok thnx
+ 2
Because it is beyond the scope of the machine used...
+ 1
If you crossed the limit it shows infinity. limit: 2^1024(int) or 1.7e+308 (float)
+ 1
Lord Krishna v@msi😏😏 but if the device is better does it make the real calculation