Print numeric values to two decimal places

use this:

echo sprintf("%01.2f", $start)

Leave a Comment