[Solved] convert string into int or double?


Every thing has a limit,
If your num is 0000100001000010000001100000, then it’s not possible to convert it in int. You have to convert it in double or float or reduce your String, trying to convert in int with Integer.parseInt(num) will throw you java.lang.NumberFormatException
if you need it in double then do this Double.parseDouble(num)
see the Primitive Data Types limits

solved convert string into int or double?