Tiny since cleanup (#13286)

This commit is contained in:
Clyybber 2020-01-28 20:02:07 +01:00 • committed by Andreas Rumpf
commit fb94836bc7
4 changed files with 111 additions and 111 deletions

View file

@ -2357,7 +2357,7 @@ proc formatBiggestFloat*(f: BiggestFloat, format: FloatFormatMode = ffDefault,
# but nothing else is possible:
if buf[i] in {'.', ','}: result[i] = decimalSep
else: result[i] = buf[i]
when (NimMajor, NimMinor) >= (1, 1):
since (1, 1):
# remove trailing dot, compatible with Python's formatter and JS backend
if result[^1] == decimalSep:
result.setLen(len(result)-1)