i want to check for palindrome of square of 10e+100 in java.
please mention any solution of it because in java double can carry only upto
4.9e-324 to 1.8e+308 numeric values , so please suggest any possible solution or hint may also be helpful...
thanks for your sincere attention.
You might want to look into the BigInteger class. Here is the documentation.
BigInteger can support huge.. huge numbers!
For numbers that large, when you only need the standard number of significant digits, it's conventional to represent the number using its logarithm, i.e. you store 10e+100 as 100*log(10) and work with that.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With