OpenMetaverse.Utils.Round C# (CSharp) Method

Round() public static method

Round a floating-point value to the nearest integer
public static Round ( float val ) : int
val float Floating point number to round
return int
        public static int Round(float val)
        {
            return (int)Math.Floor(val + 0.5f);
        }