Variable b: $b
";
echo "Nach unten mit floor(): " . floor($b) . "
";
echo "Nach oben mit ceil(): " . ceil($b) . "
";
echo "Gerundet mit round(): " . round($b) . "
Runden auf Stellenzahl:
";
$c = 1e6 / 7;
echo "Variable c: $c
";
echo "Runden auf 3 Stellen: " . round($c, 3) . "
";
echo "Runden auf -3 Stellen: " . round($c, -3) . "
";
?>