public static float Rint(float Value) { if (float.IsNegativeInfinity(Value)) { return(int.MinValue); } if (float.IsInfinity(Value) || float.IsNaN(Value)) { return(int.MaxValue); } return(MathFloat.Round(Value)); }
public static float Rint(float Value) { return(MathFloat.Round(Value)); }