BCMath.php 191 B

123456789101112
  1. <?php
  2. namespace app\common\helpers;
  3. class BCMath
  4. {
  5. static public function proportionMath($money, $proportion)
  6. {
  7. return bcdiv(bcmul($money, $proportion, 2), 100, 2);
  8. }
  9. }