Largest positive number allowed in Javascript is 1.79E+308.
yourLargest positive number allowed in Javascript is 1.79E+308.
You have taken a number(10466511635124471), which is greater than the larget +ve number.May be this is the reason to get the answer as 10466511635124472.