jquery/globalize — Issue #77: Globalize.ParseInt works incorrect for big numbers
Author: belhunter
Created: 2011-11-15 10:36:45+00:00
State: open

Globalize.parseInt("5000000000") returns 705032704 value that is wrong.

As I see the problem in truncate method, value | 0 operation. It returns 705032704 for 5000000000 value.

truncate = function( value ) {
return isNaN( value ) ? NaN : value | 0;
};