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

toStr() public static méthode

public static toStr ( double self ) : string
self double
Résultat string
        public static string toStr(double self)
        {
            if (System.Double.IsNaN(self)) return m_NaNStr;
              if (self == System.Double.PositiveInfinity) return m_PosInfStr;
              if (self == System.Double.NegativeInfinity) return m_NegInfStr;
              string s = self.ToString();
              if (s.IndexOf('.') == -1 && s.IndexOf("E") == -1) s += ".0";  // to match java behavior
              return s;
        }