codingdebugging
Why can 0.1 plus 0.2 miss 0.3?
Anonymous
Binary floating-point formats cannot represent many decimal fractions exactly. For approximate numeric work, compare with a tolerance chosen for the scale and domain. For values that need exact decimal behavior, use integer units or a decimal representation.
0