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?
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?
You can try using BigInteger
. It does not have a limit theoretically, but it adapts to the amount of available memory.