in reply to Re^2: sprintf() returning incorrect value (%.0f)
in thread sprintf() returning incorrect value

While %d truncates (114.999... ⇒ 114), %f rounds (114.999... ⇒ 115).