Here's one way...
#include <stdio.h>
#include <string.h>
main()
{
float f1 = 1845.32;
int r1 = 0;
char *p, sf1[20];
sprintf(sf1, "%6.2f", f1); /* convert float to string */
printf("SF1 = %s\n", sf1);
p = strchr(sf1, '.'); /* find the decimal point */
p++; /* point to the first char after the decimal point */
printf("P = %s\n", p);
r1 = atoi(p); /* convert string to int */
printf("R1 = %d\n", r1);
return;
}