+ 1

86 billion.

hello, im trying to find the factorial for 86 billion, no calculator would work, so i wrote a factorial function in java. i got the error saying integer value too large. i dont know how to get java to do it.

20th Dec 2021, 5:11 AM
AW4
AW4 - avatar
9 ответов
+ 4
It's not Java fault. Basically integer is only 32bit number which means the biggest number you can save in is 2^32. Please refer to docs about saving larger number =)
20th Dec 2021, 8:03 AM
Krysto Foxik 🐥
Krysto Foxik 🐥 - avatar
+ 2
myme Use BigInteger class but 86 billion is very huge number.
20th Dec 2021, 6:13 AM
A͢J
A͢J - avatar
+ 1
How exact do you need your number? Fully as a number to use it further or do you just need to have a specific accuracy? Is printing it enough?
21st Dec 2021, 3:50 PM
Sarius
0
it timed out at 860. somebody ask the devs to increase page symbol limit because it wont print the entire thing to the page.
20th Dec 2021, 5:56 PM
AW4
AW4 - avatar
21st Dec 2021, 7:45 AM
Brian
Brian - avatar
0
86 billion is a HUGE number in and of itself…imagine how big the factorial is😅😂
21st Dec 2021, 6:19 PM
Andrew Johnson
Andrew Johnson - avatar
0
I was wondering if this was theoretically the upper limit of computational power of the human brain.
11th Jan 2023, 4:00 PM
AW4
AW4 - avatar