Browse Source

Improve countDecimalPoints

tags/v2.3.1
falkTX 3 years ago
parent
commit
4116b5b136
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      source/frontend/carla_shared.py

+ 2
- 2
source/frontend/carla_shared.py View File

@@ -596,8 +596,8 @@ def countDecimalPoints(step, stepSmall):
return 2

count = 0
value = fmod(abs(stepSmall), 1)
while 0.001 < value < 0.99 and count < 6:
value = fmod(abs(step), 1)
while 0.0001 < value < 0.999 and count < 6:
value = fmod(value*10, 1)
count += 1



Loading…
Cancel
Save