From: Carlos G. Hasbún-C. <has...@ho...> - 2009-07-01 18:41:36
|
I have being trying to printf a long double variable but have very strange numbers printed out to the console. Namely: long double longDoubleDecimal = 9.9123480; printf("Let's print a long double floating point number: %19G ", longDoubleDecimal); prints to console: -2.77594E-161 I am confused as to what is actually happening. Any help is appreciated. _________________________________________________________________ Windows Live™: Keep your life in sync. Check it out! http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_allup_explore_012009 |