Issue #1013: When the value was an integer and the format was like "%.1f", an exception was thrown