3.70 * (2.20 + 1.20) = 12.580001 = 0x414947AF # #
(3.70 * 2.20) + (3.70 * 1.20) = 12.580000 = 0x414947AE # #
float ADD(x,y) float x,y; { return(x+y); }
float MUL(x,y) float x,y; { return(x*y); }
main() { float $A=3.7,B=2.2,C=1.2; float X,Y;
X=MUL((A),ADD((B),(C))); Y=ADD(MUL((A),(B)),MUL((A),(C)));
printf("%.6f * (%.6f + %.6f) = %.6f\n",A,B,C,X); printf("(%.6f * %.6f) + (%.6f * %.6f) = %.6f\n",A,B,A,C,Y); }
3.70 * (2.00 + 1.20) = 11.840000000000002 = 0x4027AE147AE147AF # #
(3.70 * 2.00) + (3.70 * 1.20) = 11.840000000000000 = 0x4027AE147AE147AE # #