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:
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user