Not too sure about that, and I'm not seeing anything with sprintf(), so here's most likely an unconvential, though working, solution:
$num = 0.531;
if(substr($num, 0, 2) == "0.") { $num = substr($num, 1); }
sets $num to .531
$num = 5.31;
if(substr($num, 0, 2) == "0.") { $num = substr($num, 1); }
sets $num to 5.31
Hope that helps!