D
D
DimaD0106d2021-06-11 15:55:10
Python
DimaD0106d, 2021-06-11 15:55:10

Python floating point how to fix?

def find():
    number = int (ui.lineEdit.text())
    findcheck1 = int(number(* 0.4))
    findcheck2 = int(number(* 0.7))
    findcheck3 = int(number(* 0.9))
    ui.label_5.setText(findcheck1, findcheck2, findcheck3)
ui.pushButton.clicked.connect(find)


Mistake:
Traceback (most recent call last): File "C:\Users\─шьр\Desktop\╧Ёшыюцхэшх\╤їхьр юЄцшьрэшщ.py", line 22, in find findcheck1 = int(number(* 0.4)) TypeError: 40 argument after * must be an iterable, not float

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Kuts, 2021-06-11
@DimaD0106d

Parentheses are superfluous
60c3646954a22305449190.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question