+ 2

Why does this code outputs "inf" ?

print(1.20892582E24*1.20892582E24*1.20892582E24*1.20892582E24*1.20892582E24*1.20892582E24*1.20892582E24**10) output: inf

5th Oct 2022, 8:09 AM
Shantanu
Shantanu - avatar
2 Antworten
+ 6
"inf" is "Infinity" - an infinitely long number.
5th Oct 2022, 10:46 AM
Solo
Solo - avatar
+ 1
Maybe because it's a very large number...
5th Oct 2022, 9:58 AM
Ausgrindtube
Ausgrindtube - avatar