3 ms·You mean %.2f ? %d is for integers, %f is for reals (yo).by palish 15y agoYou mean %.2f ? %d is for integers, %f is for reals (yo).zedshaw 15y agoOh I'm totally using that.deleted 15y ago[deleted]irahul 15y agoI much prefer using %g for the general scenario.