#include <stdio.h>
#include <math.h>
int main(void) {
float f = 1.10;
float truncado = (f - trunc(f)) * 10;
printf("Truncado: %f\n", truncado
); float mod = fmodf(truncado, 1.0f);
if (mod != 0){
}
else{
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxtYXRoLmg+CgppbnQgbWFpbih2b2lkKSB7CglmbG9hdCBmID0gMS4xMDsKCWZsb2F0IHRydW5jYWRvID0gKGYgLSB0cnVuYyhmKSkgKiAxMDsKCXByaW50ZigiVHJ1bmNhZG86ICVmXG4iLCB0cnVuY2Fkbyk7CglmbG9hdCBtb2QgPSBmbW9kZih0cnVuY2FkbywgMS4wZik7CglwcmludGYoIk1vZDogJWZcbiIsIG1vZCk7CglpZiAobW9kICE9IDApewoJCXByaW50ZigiJS4yZiIsIGYpOwoJfQoJZWxzZXsKCQlwcmludGYoIiUuMWYiLCBmKTsKCX0KCXJldHVybiAwOwp9Cg==