Search Results

Search: Posts Made By: Hara
Forum: Programming 12-21-2006
9,870
Posted By Hara
Floating point error in C
Hi,
see the simple code below

double i;
i=8080.9940;
printf(" val :%.30f\n",i);

output i m getting is
val :8080.993999999999700000000000000
when i m expecting
val :8080.9940

what...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 02:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy