In the code below, the ans should be 56743 but output showing 56742. how to avoid this problem? if i take other inputs like 467.43 , this problem doesn’t occur
code :
#include <stdio.h>
int main()
{
double x = 467.43 * 100;
int f = (int) x;
printf("%d\n", f);
}