MathF.Truncate() Method in C# with Examples
In C#, MathF.Truncate(Single) is a MathF class method which is used to compute an integral part of a specified single number or single-precision floating-point number.
public static float Truncate (float x);
x: It is the specified number which is to be truncated and type of this parameter is System.Single.
Return Type: This method only return the integral part of x and discard the fractional part. The type of this method is System.Single.
My Personal Notes arrow_drop_up
Please Login to comment...