Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php if negative make positive

<?php
echo(abs(6.7) . "<br>");
echo(abs(-6.7) . "<br>");
echo(abs(-3) . "<br>");
echo(abs(3));
?>
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #php #negative #positive
ADD COMMENT
Topic
Name
2+5 =