strutils.nim: fixes the indentation of formatEng
This commit is contained in:
parent
a34ce2714a
commit
26fc7d465a
1 changed files with 5 additions and 5 deletions
|
|
@ -2498,11 +2498,11 @@ proc formatEng*(f: BiggestFloat,
|
||||||
# we can be a bit more efficient through knowledge that there will never be
|
# we can be a bit more efficient through knowledge that there will never be
|
||||||
# an exponent in this part.
|
# an exponent in this part.
|
||||||
if trim:
|
if trim:
|
||||||
while splitResult[1].endsWith("0"):
|
while splitResult[1].endsWith("0"):
|
||||||
# Trim last character
|
# Trim last character
|
||||||
splitResult[1].setLen(splitResult[1].len-1)
|
splitResult[1].setLen(splitResult[1].len-1)
|
||||||
if splitResult[1].len() > 0:
|
if splitResult[1].len() > 0:
|
||||||
result &= decimalSep & splitResult[1]
|
result &= decimalSep & splitResult[1]
|
||||||
else:
|
else:
|
||||||
result &= decimalSep & splitResult[1]
|
result &= decimalSep & splitResult[1]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue