This commit is contained in:
Andreas Rumpf 2021-06-30 12:36:24 +02:00 • committed by GitHub
commit 19263f2775
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -359,7 +359,7 @@ proc formatDigits(buffer: var openArray[char]; pos: int; digits: uint32; decimal
pos = digitsEnd
elif decimalPoint < numDigits:
## dig.its
for i in 0..<8:
for i in countdown(7, 0):
buffer[i + decimalPoint + 1] = buffer[i + decimalPoint]
buffer[pos+decimalPoint] = '.'
pos = digitsEnd + 1