How to take a 35 to 40 digit number in java? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to take a 35 to 40 digit number in java?

26th Feb 2020, 3:46 PM
shivam prakash
shivam prakash - avatar
4 Answers
+ 4
0_0 Mägár Sám Äkà Nüllpøïntêr Èxëcéptïön I think you did not understand the question well. He is asking to input a number with 35 to 40 digits in it and not the range 35 to 40. shivam prakash go through this, just like ~ swim ~ mentioned in his comment. https://docs.oracle.com/javase/8/docs/api/java/math/BigInteger.html
26th Feb 2020, 4:21 PM
Avinesh
Avinesh - avatar
+ 4
Sorry, i didn't read questions properly at all my mistake as well as no proper description in question.
26th Feb 2020, 6:25 PM
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~ - avatar
+ 3
shivam prakash please fill the description, don't let it empty or explain your question more perfectly.
26th Feb 2020, 6:39 PM
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~ - avatar
0
There are, for example, the BigInteger (and BigDecimal) class. And sometimes it is possible to store a number as a string-it depends on the situation.
28th Feb 2020, 5:09 AM
red crab
red crab - avatar