diff options
author | xuri <xuri.me@gmail.com> | 2022-04-04 00:21:33 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2022-04-04 00:21:33 +0800 |
commit | ecbc6e2fde1941cb5ac9e5f3bfce329e7bfa8825 (patch) | |
tree | 24597853107787b521fc98263f19c242ac2be6f5 /numfmt.go | |
parent | be8fc0a4c5795bb793b171c25fd90e0369812a05 (diff) |
ref #65, new formula functions: T.INV and T.INV.2T
- Typo fixed
Diffstat (limited to 'numfmt.go')
-rw-r--r-- | numfmt.go | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -33,9 +33,9 @@ type languageInfo struct { type numberFormat struct { section []nfp.Section t time.Time - sectionIdx int - isNumberic, hours, seconds bool - number float64 + sectionIdx int + isNumeric, hours, seconds bool + number float64 ap, afterPoint, beforePoint, localCode, result, value, valueSectionType string } @@ -279,7 +279,7 @@ var ( // prepareNumberic split the number into two before and after parts by a // decimal point. func (nf *numberFormat) prepareNumberic(value string) { - if nf.isNumberic, _ = isNumeric(value); !nf.isNumberic { + if nf.isNumeric, _ = isNumeric(value); !nf.isNumeric { return } } @@ -297,7 +297,7 @@ func format(value, numFmt string) string { if section.Type != nf.valueSectionType { continue } - if nf.isNumberic { + if nf.isNumeric { switch section.Type { case nfp.TokenSectionPositive: return nf.positiveHandler() |