I don’t have a clue where to start on changing the floor() into a modf() could someone plz help

[code]//

// main.c

// PBR Advanced (10)

//

// Created by Cynikz on 15/06/2014.

// Copyright © 2014 Cynikz. All rights reserved.

//

#include <stdio.h>

#include <math.h>

void metersToFeetAndInches(double meters, unsigned int *ftPtr, double *inPtr)

{

//This assumes function is non-negative

```
//Convert the number of meters into a floating-point number of feet
double rawFeet = meters * 3.281; //e.g. 2.4536
//How many complete feet as an unsigned int?
unsigned int feet = (unsigned int)floor(rawFeet);
//Store the number of feet at the supplied address
if(ftPtr) {
printf("Storing %u to the address %p\n", feet, ftPtr);
*ftPtr = feet;
}
//Calculate inches
double fractionalFoot = rawFeet - feet;
double inches = fractionalFoot * 12.0;
//Store the number of inches at the supplied address
if(inPtr) {
printf("Storing %.2f to the address %p\n", inches, inPtr);
*inPtr = inches;
}
```

}

int main(int argc, const char * argv[])

{

double meters = 3.0;

unsigned int feet;

double inches;

```
metersToFeetAndInches(meters, &feet, &inches);
printf("%.1f meters is equal to %d feet and %.1f inches.\n",meters, feet, inches);
return 0;
```

}

[/code]