tpl: Fix bad rounding in NumFmt
authorSam Smith <sams96@mail.com>
Wed, 1 Apr 2020 22:13:23 +0000 (23:13 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 2 Jun 2020 15:20:36 +0000 (17:20 +0200)
commit3d9235e8fcf31553c0c0f313d3264f12438749ea
treed7cd000a5dd9fbe966b3cbc44434426ba4c27bf9
parentf7d909f3948ca3d1318e5b0d6c80d905fc37aea2
tpl: Fix bad rounding in NumFmt

strconv.FormatFloat doesn't round properly sometimes, this adds a
different method of rounding, fixes #7116
tpl/lang/lang.go
tpl/lang/lang_test.go