Hello all,
I am supposed to multiply 10 float values. (like 0.002, 0.004, 0.006, etc...)
Which data type will best suit the product of these float values?
I used 'long double' but I am still getting 0 as the product.
(I have initialised the product as 1. So, no problem with that.)
Can someone suggest a suitable data type which can handle longer decimal places. Also pls mention the representation to be used ie.%f or something like that.
Thanks
I am supposed to multiply 10 float values. (like 0.002, 0.004, 0.006, etc...)
Which data type will best suit the product of these float values?
I used 'long double' but I am still getting 0 as the product.
(I have initialised the product as 1. So, no problem with that.)
Can someone suggest a suitable data type which can handle longer decimal places. Also pls mention the representation to be used ie.%f or something like that.
Thanks
Comment