I am just multiplying two very big value in ios.
value 1 999999999999
value 2 99999
I am using the data type as double long i.e long long and this works for only too big values but not for small values like 10*23 something like that i get different answers example
10.0*111.5 actual value in calculator is 1115 but i wat i get is 1110
please help me and i also want to roundof my answer to 3places like %.3f
This is probably what you are doing
This is what you should do
If for some reason double is not enough you can go for
long double.