I working on the few of the small decimals like 0.0000687, 0.0000063241, 0.0000454. I used BCMath as to get the most precise result because it involved with money calculation, so far BCMath it is very …
Tag: bcmath
How to multiply small floats with unkown number of decimal places in PHP withouth getting zero because of scientific notation?
I’m trying to multiply some small numbers in PHP, but bcmul is returning zero because the float value is being turned into scientific notation. I tried using sprintf(‘%.32f’,$value) on the small float …