How to use bcdiv() to divide two arbitrary precision numbers in PHP

1 Answer

0 votes
// string bcdiv( string $left_operand , string $right_operand [, int $scale = 0 ])

echo bcdiv('100', '3.14', 3);  


/*
run: 

31.847 

*/

 



answered Jun 1, 2016 by avibootz
...