How to use bcmul() to multiply two arbitrary precision numbers in PHP

1 Answer

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

echo bcmul('3.145', '27', 3) . "<br />" ;
echo bcmul('3', '6') . "<br />" ;

/*
run: 

84.915
18 

*/

 



answered Jun 1, 2016 by avibootz
...