Function that returns the integer part of a float

Closed
clemclemdu94 -  
Chris 94 Posted messages 1937 Registration date   Status Moderator Last intervention   -
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