AssemblyCSharp.MathUtil.RoundToInt C# (CSharp) Method

RoundToInt() public static method

public static RoundToInt ( float f, MidpointRounding mode = MidpointRounding.AwayFromZero ) : int
f float
mode MidpointRounding
return int
        public static int RoundToInt(float f, MidpointRounding mode = MidpointRounding.AwayFromZero)
        {
            return (int) Math.Round(f, mode);
        }