diff --git a/python/examples/numbers/float_precision_rounded.py b/python/examples/numbers/float_precision_rounded.py index 370e7362e..9ddb858f3 100644 --- a/python/examples/numbers/float_precision_rounded.py +++ b/python/examples/numbers/float_precision_rounded.py @@ -4,6 +4,7 @@ print(x) # 0.30000000000000004 print(y) # 0.3 +print(round(x, 10)) if round(x, 10) == round(y, 10): print("They are equal") else: