M
M
max_may572022-03-29 21:29:22
Python
max_may57, 2022-03-29 21:29:22

I ran into something incomprehensible - where did the extra 00000002 come from?

Where do these results come from?

input:

a = float(input())
print((a - int(a)))


conclusion:
3.7
0.7000000000000002

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2022-03-29
@max_may57

https://0.30000000000000004.com

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question