N
N
nik2102019-05-24 21:54:17
Python
nik210, 2019-05-24 21:54:17

Why does python multiply crookedly and how to fix it?

a=1000
b=1.005
c=b*a
print(c)

at the output I get this
1004.9999999999999
Why does python multiply so crookedly and how can I fix it without using rounding (Round)?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question