May 01, 2003
Floating-Point Math: In the Intersection of C and C++Listing 3: Sample output sizeof(float) = 4 sizeof(double) = 8 sizeof(long double) = 12 sizeof sin(0.0F) = 4 sizeof sin(0.0) = 8 sizeof sin(0.0L) = 12 pi/2 = 1.57079632679489661928 asin(1.0F) = 1.57079637050628662109 error=4.37114e-08 asin(1.0) = 1.57079632679489655799 error=-6.12574e-17 asin(1.0L) = 1.57079632679489661928 error=0 -- End of Listing --
|
|
||||||||||||||||||||||||||||
|
|
|
|