# PHP Program To Find Absolute Value Of Number

## Write PHP program to find absolute value of number

<!-- Write a Programme to Find Absolute Value Of Given Number -->

<html>
<body>
<?php

echo "The Absolute Number Of Given Number is <br> ";

// abs() is build in PHP function used to find absolute value
echo "6.7 = ";
echo(abs(6.7) . "<br>");
echo "-6.7 = ";
echo(abs(-6.7) . "<br>");
echo "-3 = ";
echo(abs(-3) . "<br>");
echo "3 = ";
echo(abs(3));

?>
</body>
</html>

Output:

The Absolute Number Of Given Number is
6.7 = 6.7
-6.7 = 6.7
-3 = 3
3 = 3