From 4a692aed552e861346272bd3746ab6f076354821 Mon Sep 17 00:00:00 2001 From: "chen.s.g" Date: Thu, 14 Jun 2018 17:13:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=AE=E7=82=B9=E6=95=B0=E8=AF=BB=E5=8F=96?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- col.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/col.go b/col.go index b99ca1f..7b441c5 100644 --- a/col.go +++ b/col.go @@ -204,7 +204,7 @@ func (f *FormulaColHeader) Value() float64 { var rknumhigh = ByteToUint32(f.Result[4:8]) var rknumlow = ByteToUint32(f.Result[0:4]) var sign = (rknumhigh & 0x80000000) >> 31 - var exp = float64(((rknumhigh & 0x7ff00000) >> 20) - 1023) + var exp = float64(((int32(rknumhigh) & 0x7ff00000) >> 20) - 1023) var mantissa = (0x100000 | (rknumhigh & 0x000fffff)) var mantissalow1 = (rknumlow & 0x80000000) >> 31 var mantissalow2 = (rknumlow & 0x7fffffff)