HTML/Javascript

SES by business degree online promotion team.

Philippine Airlines International Flight schedules

Philippine Airlines International Flight schedules
Philippine Airlines International Flight schedules

Search This Blog

Wednesday, October 6, 2010

Round off a number

<?php
$number = "28";
$number = number_format($number, 2);
echo $number; // equals "28.00"

$average = $totalrank_totaling / 3;
$average_rounded =round($average, 2);

echo $number;
echo "<br>";
echo $average_rounded;
?>

No comments:

Post a Comment