I have a value assigned to a variable called x (float) of 12.56.
I have another int variable called y. If I want to output 12 (from the 12.56) i can do:
y = x;
printf("%d", y); /*truncates the 12.56 and out puts 12 only*/
Any ideas how I just output the .56 of the 12.56??