Y
yezi
Hi: All:
I have question with the data type problem. According to the C
standard. IEEE 754
float 4 3.4x10-38E..3.4x10+38E
double 8 1.7x10-308E..1.7x10+308E
long double 12 ???
The code function is (0.000200-0.000300)*(0.000200-0.000300)
suppose the result (difference ) should be the 10 (-8)
difference I claim is double;
But THe code result is :
fp1 0.000200
------------------------
fp2 0.000300
difference is 0.000000
which means the result is zero.
Why?
Thanks
bin YE
I have question with the data type problem. According to the C
standard. IEEE 754
float 4 3.4x10-38E..3.4x10+38E
double 8 1.7x10-308E..1.7x10+308E
long double 12 ???
The code function is (0.000200-0.000300)*(0.000200-0.000300)
suppose the result (difference ) should be the 10 (-8)
difference I claim is double;
But THe code result is :
fp1 0.000200
------------------------
fp2 0.000300
difference is 0.000000
which means the result is zero.
Why?
Thanks
bin YE