- or download this
#include <stdio.h>
...
float x = 147.2;
printf("%20.20f", x * 100);
}
- or download this
float x = 147.2;
printf("%d", x * 100);
- or download this
$x = 147.2;
printf("%d", $x * 100);
- or download this
float x = 147.2;
printf("%d", (int)(x * 100));