1
0
mirror of https://github.com/pbnjay/grate.git synced 2026-05-16 17:16:40 +02:00

fix formula parse error

This commit is contained in:
Jeremy Jay
2023-10-05 22:24:35 -04:00
committed by GitHub
parent 6f2eabdf18
commit 3f8e65d74a
+1 -1
View File
@@ -247,7 +247,7 @@ func (b *WorkBook) parseSheet(s *boundSheet, ss int) (*commonxl.Sheet, error) {
log.Printf("unknown formula value type %d", fdata[0])
}
} else {
xnum := binary.LittleEndian.Uint64(fdata[6:])
xnum := binary.LittleEndian.Uint64(fdata)
value := math.Float64frombits(xnum)
res.Put(int(formulaRow), int(formulaCol), value, fno)
}