Fan.Sys.FanFloat.compare C# (CSharp) Méthode

compare() public static méthode

public static compare ( double self, object obj ) : long
self double
obj object
Résultat long
        public static long compare(double self, object obj)
        {
            double that = (obj as Double).doubleValue();
              if (System.Double.IsNaN(self))
              {
            return (System.Double.IsNaN(that)) ? 0 : -1;
              }
              else if (System.Double.IsNaN(that))
              {
            return +1;
              }
              else
              {
            if (self < that) return -1; return self == that ? 0 : +1;
              }
        }