mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Refine comments
This commit is contained in:
parent
57cacf29bb
commit
6ec2667bf3
1 changed files with 2 additions and 2 deletions
|
@ -268,8 +268,8 @@ def f2s(val, DP=6):
|
|||
i += 1
|
||||
digits += 1
|
||||
|
||||
if s[i if i != dot else i+1] >= u'5': # no rounding necessary
|
||||
# Rounding - increment s[:i] storing result into news
|
||||
if s[i if i != dot else i+1] >= u'5':
|
||||
# Rounding - increment s[:i] storing result into new_s
|
||||
new_s = u''
|
||||
ci = i-1 # carry index
|
||||
while ci >= 0 and s[ci] == u'9':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue