-2
#include <stdio.h>
#include <conio.h>
#include <math.h>
float t, delt = 0.004000,n;
printf("enter the value for t=");
scanf("%f", &t);
n = t/ delt;
printf("n is %f",n);
getch();
输出: 对于T输入值= 1 n为249.999985浮点除法
我期待250我在做什么错?
也许SO应该把[this](http://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html)页面的链接粘贴在顶部 – IllusiveBrian 2014-09-24 01:57:29
SO应该会自动显示在发布之前为dups。像bugzilla一样 – thang 2014-09-24 01:58:13