Weird math calculations

Hello! after my last post i realized when you subtract 1.1 from 2.9 it prints out 1.7999999999999998
can someone explain why?

1 Like

This is due to a computing phenomenon called floating-point precision error. Try rounding to the nearest 100th or so and it should remove the error.