Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from decimal import Decimal as D
- a = D("0.1")
- b = D("0.2")
- c = a + b
- if c == D("0.3"):
- print("OK - nasz wynik to 0.3 - oczekiwany!")
- else:
- print(f"Nasz wynik jest dziwny: {c}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement