[...] 0.1 + 0.1 + 0.1 == 0.3, "Usual way to compare does not always work with floats!"
Answer
assert
status
not learned
measured difficulty
37% [default]
last interval [days]
repetition number in this series
0
memorised on
scheduled repetition
scheduled repetition interval
last repetition or drill
Parent (intermediate) annotation
Open it assert 0.1 + 0.1 + 0.1 == 0.3, "Usual way to compare does not always work with floats!"
Original toplevel document
Open it Beware of float return values! 0.1 + 0.1 + 0.1 == 0.3 Sometimes false assert 0.1 + 0.1 + 0.1 == 0.3, "Usual way to compare does not always work with floats!" Instead use: assert 0.1 + 0.1 + 0.1 == pytest.approx(0.3)