取一个数字,加1,然后减去原始数字。浮点计算可能会给出另一个答案:
1
#include <stdio.h> int main(void) { float a,b; b = 2.0e20 + 1.0; a = b - 2.0e20; printf("%f \n", a); return 0; }