FREE Subscription to Dr. Dobb’s Digest: Same Great Content, New Digital Edition
Site Archive (Complete)
C++
Email
Print
Reprint

add to:
Del.icio.us
Digg
Google
Furl
Slashdot
Y! MyWeb
Blink
May 01, 2003

Floating-Point Math: In the Intersection of C and C++

(Page 4 of 4)
HexWeb HTML

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 --

Previous Page | 1 | 2 | 3 | 4
TOP 5 ARTICLES
No Top Articles.



MICROSITES
FEATURED TOPIC

ADDITIONAL TOPICS

INFO-LINK