View Single Post
  #32 (permalink)  
Old 04-21-2008, 01:51 AM
Jeyaseelansarc Jeyaseelansarc is offline
D-Web Genius
 
Join Date: Mar 2007
Location: Chennai
Posts: 1,162
Jeyaseelansarc is on a distinguished road
Send a message via AIM to Jeyaseelansarc
Default Re: Mathematical functions in PHP

bcdiv() divides the left_operand by the right_operand and returns the result. The optional scale sets the number of digits after the decimal place in the result, which defaults to 0.

For e.g
PHP Code:
<?php
echo bcdiv('105''6.55957'3);  // 16.007
?>
__________________
With,
J. Jeyaseelan

Everything Possible
Reply With Quote