Advertisement
pixedelic

bcmul()

Aug 4th, 2014
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.25 KB | None | 0 0
  1. <?php
  2. if ( !function_exists( 'bcmul' ) ) :
  3. /**
  4.  * bcmul()
  5.  * @since Geode 1.2.0
  6.  */
  7. function bcmul($n, $m, $dec=0) {
  8.  
  9.     $value = $n * $m;
  10.  
  11.     if ($dec) {
  12.  
  13.         $value = round($value, $dec);
  14.  
  15.     }
  16.  
  17.     return $value;
  18.  
  19. }
  20. endif;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement