+ 8

Javascript output

Can Anyone explain the output? Please Idk how it calculated that answer 🤔 Thank you https://code.sololearn.com/WG8JWScz7N3x/?ref=app

23rd Jul 2019, 12:25 AM
KingDaniel2004
KingDaniel2004 - avatar
20 Réponses
+ 3
Here is why you dont get a number but infinity https://www.w3schools.com/jsref/jsref_infinity.asp i also coded something for you https://code.sololearn.com/WjmeL1IFMUUW/?ref=app
23rd Jul 2019, 12:57 AM
Nico Ruder
Nico Ruder - avatar
+ 10
Nico Ruder and Agent_I Thank you both for your help ☺️
23rd Jul 2019, 1:29 AM
KingDaniel2004
KingDaniel2004 - avatar
+ 8
Nico Ruder so javascript have minimum and maximum number limit ? -1.797693134862315E+308 (minimum) And 1.797693134862315E+308(maximum) if the number is not inside that range then it will display "infinity" Am I right?
23rd Jul 2019, 1:04 AM
KingDaniel2004
KingDaniel2004 - avatar
+ 8
Nico Ruder this minimum and maximum range is for every programming languages or only for javascript?
23rd Jul 2019, 1:09 AM
KingDaniel2004
KingDaniel2004 - avatar
+ 8
Nico Ruder bro you have iOS or Android?🤔
23rd Jul 2019, 1:32 AM
KingDaniel2004
KingDaniel2004 - avatar
+ 7
Nico Ruder why not share codes in message section in sololearn 🙄
23rd Jul 2019, 1:57 AM
KingDaniel2004
KingDaniel2004 - avatar
+ 7
Nico Ruder go to your notifications. Then click on the tab called"message"(2nd tab) I already send you "hi" so the message should already popped up for you
23rd Jul 2019, 2:34 AM
KingDaniel2004
KingDaniel2004 - avatar
+ 5
Roshan yeah brother 10 ** (10**10) = 10 000 000 000 ↓ 10 ** 10 000 000 000 = ? 🙄 thanks for your answer 😁
26th Jul 2019, 4:15 PM
KingDaniel2004
KingDaniel2004 - avatar
+ 2
The number is too big 10^(10^10) is a googolplex 🤔
23rd Jul 2019, 6:10 AM
Sanjay Kamath
Sanjay Kamath - avatar
+ 1
The ** is an exponentiation. So the result is actually 10^(10^10) and that result is too large. That's why the output is infinity
23rd Jul 2019, 12:33 AM
Agent_I
Agent_I - avatar
+ 1
yes this is why you get infinity
23rd Jul 2019, 1:06 AM
Nico Ruder
Nico Ruder - avatar
+ 1
if you think about it you multiply 10 times 10 with 10 zeros
23rd Jul 2019, 1:07 AM
Nico Ruder
Nico Ruder - avatar
+ 1
maybe other programming languages have bigger or smaller limits but I dont know. Look for the documentation to find out
23rd Jul 2019, 1:11 AM
Nico Ruder
Nico Ruder - avatar
+ 1
Daniel [#United We Stand🇮🇳] It's actually the maximum of a double-precision floating point, or simply double. Every variable is JS is stored in double
23rd Jul 2019, 1:13 AM
Agent_I
Agent_I - avatar
+ 1
Daniel i want to know you better. maybe we can write together. here is an Email where you can send me your email addres so i can write you back. b5014511@urhen.com
23rd Jul 2019, 1:30 AM
Nico Ruder
Nico Ruder - avatar
+ 1
android
23rd Jul 2019, 1:32 AM
Nico Ruder
Nico Ruder - avatar
+ 1
my temorary email expired lets use this instead b5015335@urhen.com
23rd Jul 2019, 1:46 AM
Nico Ruder
Nico Ruder - avatar
+ 1
thats true
23rd Jul 2019, 2:06 AM
Nico Ruder
Nico Ruder - avatar
0
but where is the message section i dont find it
23rd Jul 2019, 2:11 AM
Nico Ruder
Nico Ruder - avatar
0
The number from the output is 1,000 so it is a googolplex because the number is too big for an output
25th Jul 2019, 11:15 PM
Corbin fjalstad