diff options
Diffstat (limited to 'vendor/github.com/tdewolff/parse/v2/strconv/float.go')
| -rw-r--r-- | vendor/github.com/tdewolff/parse/v2/strconv/float.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/github.com/tdewolff/parse/v2/strconv/float.go b/vendor/github.com/tdewolff/parse/v2/strconv/float.go index 35558fc98..103db72e0 100644 --- a/vendor/github.com/tdewolff/parse/v2/strconv/float.go +++ b/vendor/github.com/tdewolff/parse/v2/strconv/float.go @@ -145,7 +145,7 @@ func AppendFloat(b []byte, f float64, prec int) ([]byte, bool) { expLen = 1 + LenInt(int64(exp)) // e + digits } else if mantExp < -3 { exp = mantExp - expLen = 2 + LenInt(int64(exp)) // e + minus + digits + expLen = 1 + LenInt(int64(exp)) // e + minus + digits } else if mantExp < -1 { mantLen += -mantExp - 1 // extra zero between dot and first digit } |
