set number of digits in round to 2

This commit is contained in:
Pavel 2020-10-09 16:27:46 +02:00
parent e8ab128231
commit d894de31f8
1 changed files with 2 additions and 2 deletions

View File

@ -48,12 +48,12 @@ def previous(event):
def left(event, step):
global plan, index
plan[index] = (round(plan[index][0] + step, 3), plan[index][1], plan[index][2])
plan[index] = (round(plan[index][0] + step, 2), plan[index][1], plan[index][2])
voler_selon(plan)
def right(event, step):
global plan, index
plan[index] = (round(plan[index][0] - step, 3), plan[index][1], plan[index][2])
plan[index] = (round(plan[index][0] - step, 2), plan[index][1], plan[index][2])
voler_selon(plan)
def up(event):