- sprintf: documentation ( source)
<?php
echo sprintf("%02s", 54.51555 * 100 % 100);
echo "\n";
echo sprintf("%02s", 54.41444 * 100 % 100);
echo "\n";
echo sprintf("%02s", intval(54.51444 * 100) % 100);
echo "\n";
echo sprintf("%02s", intval(54.41444 * 100) % 100);