int a = atof("4.60") * 100;
int b = atof("6.60") * 100;
printf("a:%d",a); //<==== here print a:459
printf("b:%d",b); //<==== here print b:660
In IEEE 754, 4.60 is 4.599999999... and 6.60 is 6.5999999... I expect print b will show 659 too. How does the truncate work?