21
0
Fork 0

"Fixed" wrong interpretation of number value

This commit is contained in:
Felix Limberger 2023-08-16 14:56:48 +02:00
parent 4a6cf26307
commit ebc9f4f17e
1 changed files with 2 additions and 2 deletions

4
col.go
View File

@ -168,10 +168,10 @@ type NumberCol struct {
}
func (c *NumberCol) String(wb *WorkBook) []string {
if fNo := wb.Xfs[c.Index].formatNo(); fNo != 0 {
/* if fNo := wb.Xfs[c.Index].formatNo(); fNo != 0 {
t := timeFromExcelTime(c.Float, wb.dateMode == 1)
return []string{yymmdd.Format(t, wb.Formats[fNo].str)}
}
}*/
return []string{strconv.FormatFloat(c.Float, 'f', -1, 64)}
}