I am parsing a string to an integer and it works fine until certain values. After that the result is not exact. The code will be like below
parseInt(someString);//this string will have any value.
For example when i execute the below code i get result as 18446744073709552000
parseInt(18446744073709551616) //result 18446744073709552000
But I am expecting the result to be 18446744073709551616.
Can any one tell what is wrong? And how do I accomplish what I want.
I need to check if a string exceeds the maximum value or not. So how is that possible?