Function that returns the integer part of a float
Closed
clemclemdu94
-
Chris 94 Posted messages 1937 Registration date Status Moderator Last intervention -
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)
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
-
Hello,
Hmmm, here is the function to do your exercises on this site:
https://www.commentcamarche.net/infos/25899-demander-de-l-aide-pour-vos-exercices-sur-ccm/
--
People who fight may lose. People who do not fight have already lost.
(Bertolt BRECHT)