note 84255 added to function.bcdiv
| From: | no at answer dot com | Date: | Sat, 05 Jul 2008 20:06:25 +0000 |
| Subject: | note 84255 added to function.bcdiv | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-141206@lists.php.net to get a copy of this message | ||
If you don't have bcmath installed and you need to use bcdiv() with a defined precision / scale
you may need this function:
if( !function_exists( "bcdiv" ) )
{
function bcdiv( $first, $second, $scale = 0 )
{
$res = $first / $second;
return round( $res, $scale );
}
}
----
Server IP: 212.124.37.9
Probable Submitter: 82.83.62.166
----
Manual Page -- http://www.php.net/manual/en/function.bcdiv.php
Edit -- https://master.php.net/note/edit/84255
Del: integrated -- https://master.php.net/note/delete/84255/integrated
Del: useless -- https://master.php.net/note/delete/84255/useless
Del: bad code -- https://master.php.net/note/delete/84255/bad+code
Del: spam -- https://master.php.net/note/delete/84255/spam
Del: non-english -- https://master.php.net/note/delete/84255/non-english
Del: in docs -- https://master.php.net/note/delete/84255/in+docs
Del: other reasons-- https://master.php.net/note/delete/84255
Reject -- https://master.php.net/note/reject/84255
Search -- https://master.php.net/manage/user-notes.php