diff --git a/pkg/schema/field/number.go b/pkg/schema/field/number.go index 56a8f0b5ec96139b6e8ce37d6f475545f0132fe9..5a00bd9b45ffc5fa79720891fc20a1dd421471c9 100644 --- a/pkg/schema/field/number.go +++ b/pkg/schema/field/number.go @@ -10,8 +10,10 @@ import ( const ( NumberFormatInt = "int" NumberFormatFloat = "float" - maxInt = 1<<53 - 1 // Integers from в€’9,007,199,254,740,991 to 9,007,199,254,740,991 can be exactly represented in float64. - minInt = -1<<53 + 1 + + // The largest integer that can be represented in IEEE 754 double (64-bit) is a value from -2^53 to 2^53. + maxInt = 1<<53 - 1 + minInt = -1<<53 + 1 ) var numberType = &NumberType{}