Value should be 189.81 (rounded to two decimals) and sprintf gives us: 189.804999999999978399500833 Value should be 189.81 (rounded to two decimals) and sprintf gives us: 189.805000000000006821210263