Good evening, I would like to know how I can print the fractional part of the real number, that is, when I type 5.678, I would like to print in the second A (where the comment is), just the number 0.678, which I should use for the impression, I did not find in math.h any that solved the problem. Thankful.
#include <stdio.h>
int main (void)
{
float A;
scanf("%f", &A);
A = ceil(A);
A = ;//Impressão nesta linha da parte fracionaria
A = floor(A);
printf("%f\n%.0f\n%f", A, A, A);
return 0;
}