in reply to Re: Different values while applying format specifiers
in thread Different values while applying format specifiers

Decimal 5.1 is an endless repeating binary number in IEEE-754 format and therefore the value in the memory represents 5.09999999999 in decimal. Accordingly decimal 3.1 is not an endless binary float in the memory.
  • Comment on Re^2: Different values while applying format specifiers