Function that returns the integer part of a float

Closed
Hello,
I was asked to write a function that returns the integer part of a float and replaces the value of the variable with its decimal part.
Can someone please help me?

public static int Trunc(ref float f)

1 answer