summaryrefslogtreecommitdiff
path: root/numfmt.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2022-04-04 00:21:33 +0800
committerxuri <xuri.me@gmail.com>2022-04-04 00:21:33 +0800
commitecbc6e2fde1941cb5ac9e5f3bfce329e7bfa8825 (patch)
tree24597853107787b521fc98263f19c242ac2be6f5 /numfmt.go
parentbe8fc0a4c5795bb793b171c25fd90e0369812a05 (diff)
ref #65, new formula functions: T.INV and T.INV.2T
- Typo fixed
Diffstat (limited to 'numfmt.go')
-rw-r--r--numfmt.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/numfmt.go b/numfmt.go
index 685005f..b48c36a 100644
--- a/numfmt.go
+++ b/numfmt.go
@@ -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()