-3

Which data type should be used to store such a big number like in an example in this question?

trejder
  • 17,148
  • 27
  • 124
  • 216
Gourav
  • 35
  • 1
  • 9

1 Answers1

4

Probably what you're looking for is:

  • BigDecimal if you want decimals
  • BigInteger otherwise

Source: java.math Class BigInteger.

trejder
  • 17,148
  • 27
  • 124
  • 216
Piotr Wilkin
  • 3,446
  • 10
  • 18