Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php number positive

<?php
echo abs(-4.2); // 4.2 (double/nombre à virgule flottante)
echo abs(5);    // 5 (entier)
echo abs(-5);   // 5 (entier)
?>
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #php #number #positive
ADD COMMENT
Topic
Name
2+3 =