+ 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.
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 =)
+ 2
https://javarevisited.blogspot.com/2015/08/how-to-calculate-large-factorials-using-BigInteger-Java-Example.html?m=1
https://stackoverflow.com/questions/891031/is-there-a-method-that-calculates-a-factorial-in-java
https://stackoverflow.com/questions/33292882/java-how-to-solve-a-large-factorial-using-arrays
https://stackoverflow.com/questions/11446973/find-factorial-of-large-numbers-in-java
+ 2
myme
Use BigInteger class but 86 billion is very huge number.
+ 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?
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.
0
Maybe this would be useful:
https://www.sololearn.com/post/88511/?ref=app
0
86 billion is a HUGE number in and of itself…imagine how big the factorial is😅😂
0
I was wondering if this was theoretically the upper limit of computational power of the human brain.