PHP: Arrondir les nombres

Author:


Download

<html>
<head>
<title> Fonction Mathématique</title>
</head>
<body>

<?php
$resultat = round(3.14);
echo($resultat."<br/>");

$resultat = round(-3.14);
echo($resultat."<br/>");

$resultat = round(-6.5);
echo($resultat);

?>

</body>
</html>

Leave a Reply

Your email address will not be published. Required fields are marked *


eight × = 16