The internal floating-point representation of 2.1000 exactly the same as 2.1 , so the code cannot tell the difference.
We should always know the difference between the internal representation of a numerical value and the representation that we use in the code or see in the output.
source share