The printf() function on your platform does not support the %f formatter.


closed as off-topic by rhsquared, Sid, Excited Raichu, gabbo1092, Rupert Morrish Dec 20 '18 at 19:35

  • This question does not appear to be about creation and solving of puzzles, within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 4
    $\begingroup$ Hi, welcome to Puzzling. I don't, however, think this is a puzzle... $\endgroup$ – eye_am_groot Dec 20 '18 at 18:26
  • 11
    $\begingroup$ I'm voting to close this question as off-topic because this appears to be a programming interview question. $\endgroup$ – rhsquared Dec 20 '18 at 18:28
  • $\begingroup$ So, either use another platform or another format. Or perhaps another printf. $\endgroup$ – Victor Stafusa Dec 21 '18 at 12:08


multiply the argument by 100


print it as an integer (%d)

and finally

insert a decimal separator before the second to last digit.

  • 6
    $\begingroup$ I think you may have just done some kid's homework assignment for them. $\endgroup$ – Admiral Jota Dec 20 '18 at 19:50

Not the answer you're looking for? Browse other questions tagged or ask your own question.