Tiny since cleanup (#13286)
This commit is contained in:
parent
be795bbf1a
commit
fb94836bc7
4 changed files with 111 additions and 111 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue