Round() private méthode

private Round ( float Value ) : int
Value float
Résultat int
Exemple #1
0
 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));
 }
Exemple #2
0
 public static float Rint(float Value)
 {
     return(MathFloat.Round(Value));
 }