diff options
Diffstat (limited to 'ff_GN/ff_GN.go')
-rw-r--r-- | ff_GN/ff_GN.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ff_GN/ff_GN.go b/ff_GN/ff_GN.go index 2d2e4bc4..c52c59cf 100644 --- a/ff_GN/ff_GN.go +++ b/ff_GN/ff_GN.go @@ -77,8 +77,6 @@ func (ff *ff_GN) RangePluralRule(num1 float64, v1 uint64, num2 float64, v2 uint6 // avoid allocations; otherwise just cast as string. func (ff *ff_GN) FmtNumber(num float64, v uint64) []byte { - s := strconv.FormatFloat(num, 'f', int(v), 64) - + s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64) return []byte(s) - } |