summaryrefslogtreecommitdiff
path: root/rows.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2022-03-08 00:03:02 +0800
committerxuri <xuri.me@gmail.com>2022-03-08 00:03:02 +0800
commit56aa6b82637b3210be470a8ebac1fdec2b2a6a30 (patch)
tree419760c01fe4dbc4bca48a378461702e37d82d87 /rows.go
parent61eb265c29685957bcf16b25dba3d389c548dfee (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.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/rows.go b/rows.go
index 0d2490c..81eaeeb 100644
--- a/rows.go
+++ b/rows.go
@@ -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