In C#, MathF.Floor(Single) is a MathF class method. This method is used to find the largest integer , which is less than or equal to the specified float value in the argument list.
Syntax: public static float Floor (float x);
Here, x is the float(Single) value whose floor value has to be calculated.
Return Type: This method return the largest integral value which will be less than or equal to x.
Input Value = 37 Floor value = 37 Input Value = 99.99 Floor value = 99 Input Value = 0.2154 Floor value = 0 Input Value = 123.123 Floor value = 123 Input Value = -2.2 Floor value = -3 Input Value = -123.123 Floor value = -124