diff options
author | xuri <xuri.me@gmail.com> | 2022-03-08 00:03:02 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2022-03-08 00:03:02 +0800 |
commit | 56aa6b82637b3210be470a8ebac1fdec2b2a6a30 (patch) | |
tree | 419760c01fe4dbc4bca48a378461702e37d82d87 /rows.go | |
parent | 61eb265c29685957bcf16b25dba3d389c548dfee (diff) |
ref #65, new formula functions and read boolean data type cell value support
* added 3 new formula functions: BETAINV, BETA.INV, F.INV.RT
Diffstat (limited to 'rows.go')
-rw-r--r-- | rows.go | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -429,6 +429,16 @@ func (c *xlsxC) getValueFrom(f *File, d *xlsxSST, raw bool) (string, error) { f.Lock() defer f.Unlock() switch c.T { + case "b": + if !raw { + if c.V == "1" { + return "TRUE", nil + } + if c.V == "0" { + return "FALSE", nil + } + } + return f.formattedValue(c.S, c.V, raw), nil case "s": if c.V != "" { xlsxSI := 0 |