Moved zero trimming into a separate function (code review comment)

This commit is contained in:
A. S. Budden 2016-06-01 14:30:02 +01:00
commit 1b2c599854
2 changed files with 23 additions and 29 deletions

View file

@ -68,8 +68,8 @@ Library Additions
versions are for ``char`` and ``set[char]``.
- Added ``splitDecimal`` to ``math.nim`` to split a floating point value
into an integer part and a floating part (in the range -1<x<1).
- Added ``trim`` argument to ``formatFloat`` in ``strutils.nim`` to trim
trailing zeros.
- Added ``trimZeros`` to ```strutils.nim`` to trim trailing zeros in a
floating point number.
Compiler Additions