Long of infinite length

1

Good morning. I have a very simple question for you. I have informed myself and I have seen that the long data of java only reaches 2 ^ 64. Is there any way, either changing the data type or anything, to make the numbers bigger?

    
asked by Vyber90 30.09.2017 в 12:41
source

1 answer

1

You can try using BigInteger . It does not have a limit theoretically, but it adapts to the amount of available memory.

    
answered by 30.09.2017 в 12:57