1 2 3 4
<?php $num = 2.11; echo str_pad( floor($num) ,2,"0",STR_PAD_LEFT).substr($num-floor($num), 1); ?>
1
02.11