View Single Post
  #3 (permalink)  
Old 04-15-2008, 07:21 AM
sureshbabu sureshbabu is offline
D-Web Programmer
 
Join Date: Jul 2007
Location: India
Posts: 98
sureshbabu is on a distinguished road
Send a message via AIM to sureshbabu Send a message via MSN to sureshbabu Send a message via Yahoo to sureshbabu Send a message via Skype™ to sureshbabu
Default Re: Mathematical functions in PHP

abs
It returns absolute value
Description
number abs ( mixed $number )
Examples

<?php
$abs = abs(-4.2); // $abs = 4.2; (double/float)
$abs2 = abs(5); // $abs2 = 5; (integer)
$abs3 = abs(-5); // $abs3 = 5; (integer)
?>
__________________
Thanks
Regards
Sureshbabu Harikrishnan
+91 9884320017
Reply With Quote