note 50683 added to function.bcdiv

From: Date: Mon, 07 Mar 2005 11:04:37 +0000
Subject: note 50683 added to function.bcdiv
Groups: php.notes 
Request: Send a blank email to php-notes+get-86034@lists.php.net to get a copy of this message
here's your own custom bcdiv() function if it's not available, you can use this /// BC Div custom function if its not available if (!function_exists('bcdiv')) { function bcdiv( $left_operand, $right_operand, $scale = 0) { $result = $left_operand/$right_operand; return sprintf("%0.".$scale."f",$result); } } ---- Manual Page -- http://www.php.net/manual/en/function.bcdiv.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+50683 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50683&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50683&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50683&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50683&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50683&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+50683&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#86034) next »