<?php
echo abs(-4.2); // 4.2 (double/nombre à virgule flottante)
echo abs(5); // 5 (entier)
echo abs(-5); // 5 (entier)
?>
if($number > 0){
echo "the number is positive";
}
elseif($number < 0){
echo "the number is negative";
}
else{
echo "the number is zero";
}