-3

I declared a long in Java code and it only take 19 decimal digits. I need a data type that takes over 300 decimal digits.

khelwood
  • 55,782
  • 14
  • 81
  • 108

1 Answers1

0

There is no primitive type that supports a number that long.

What you are searching for is most likely a BigInteger object. Calculations are done through the methods shown in the API.

As another user said, Javascript and Java are two different languages, please use the correct tag.