From 7002c7a239e88487093f8fbbbfc8ab284d4bf4ae Mon Sep 17 00:00:00 2001 From: ko_oler <kooler89@gmail.com> Date: Thu, 5 Oct 2023 18:22:37 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8=20=D0=BF?= =?UTF-8?q?=D0=BE=20=D0=9F=D0=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/schema/field/number.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/schema/field/number.go b/pkg/schema/field/number.go index 56a8f0b5..5a00bd9b 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{} -- GitLab