I were practicing some c programming when I saw this:
#include <stdio.h>
int main (void){
printf("result %.50lf",(double)10.0/10000000.0);
return 0;
}
And the result was 0.00000099999999999999995474811182588625868561393872
Can somebody explain me why happens this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…