I calculated 10^10 using math.pow in java but it is returning 2147483647 but when i ask 10^9 it returns correct value. Why is this happening?? I did this by creating my own function also but now it is returning 1410065408. My function gave correct value for 10^9.
Why is java not calculating correct value of 10^10????
Someone explain this to me please.