image
image
image

✓  Decimal in Python

image

Example

Start IDLE.

Navigate to the File menu and click New Window.

Type the following:

(1.2+2.1)==3.3  #Will return False, why?

Discussion

The computer works with finite numbers and fractions cannot be stored in their raw form as they will create infinite long binary sequence.