How to set default scale parameter for all bc math functions in PHP

1 Answer

0 votes
// bool bcscale( int $scale )

bcscale(3);
echo bcdiv('123', '3.14') . "<br />" ;

// the same as above
echo bcdiv('123', '3.14', 3) . "<br />" ; 


/*
run: 

39.171
39.171

*/

 



answered Jun 1, 2016 by avibootz

Related questions

...