Multiplication of floating numbers in php is giving unacceptable result. For example, multiplication of 0.023* 0.0034 * 0.11 is yielding 0.
I have an array containing 48 floating numbers less than 1. I want the product of all 48 numbers, any way to achieve this in PHP?
__________________
Want to study M.Sc in any medical subjects? Read this www.microrao.com/msc.htm
Microx, a diagnostic microbiology laboratory software application www.labmicrox.com
Advertisements. Register and be a member of the community to get rid of them.
As for a wordaround, since you are multiplyting, I will suggest that you multiple all numbers with powers of ten first and then again divide the output accordingly!
__________________
विक्टर रॅंबो - चाणकया प्रभावित व्यक्ति
गीक होना माँगता
Last edited by victor_rambo; 15-06-2008 at 05:09 PM.