NumberToString() public static method

public static NumberToString ( double value, IFormatProvider fp ) : string
value double
fp IFormatProvider
return string
Exemplo n.º 1
0
        public string ToString(string format, IFormatProvider formatProvider)
        {
            NumberFormatInfo nfi = NumberFormatInfo.GetInstance(formatProvider);

            return(NumberFormatter.NumberToString(format, this.m_value, nfi));
        }
Exemplo n.º 2
0
 public string ToString(string format, IFormatProvider provider)
 {
     return(NumberFormatter.NumberToString(format, m_value, provider));
 }
Exemplo n.º 3
0
 public override string ToString()
 {
     return(NumberFormatter.NumberToString(m_value, null));
 }
Exemplo n.º 4
0
 /// <summary>Converts the numeric value of this instance to its equivalent string representation using the specified culture-specific format information.</summary>
 /// <returns>The string representation of the value of this instance as specified by <paramref name="provider" />.</returns>
 /// <param name="provider">An <see cref="T:System.IFormatProvider" /> that supplies culture-specific formatting information. </param>
 /// <filterpriority>1</filterpriority>
 public string ToString(IFormatProvider provider)
 {
     return(NumberFormatter.NumberToString(this, provider));
 }
Exemplo n.º 5
0
 public string ToString(string format, IFormatProvider formatProvider)
 {
     return(NumberFormatter.NumberToString(format, mValue, NumberFormatInfo.GetInstance(formatProvider)));
 }
Exemplo n.º 6
0
 /// <summary>Converts the numeric value of this instance to its equivalent string representation.</summary>
 /// <returns>The string representation of the value of this instance, consisting of a minus sign if the value is negative, and a sequence of digits ranging from 0 to 9 with no leading zeroes.</returns>
 /// <filterpriority>1</filterpriority>
 public override string ToString()
 {
     return(NumberFormatter.NumberToString((int)this, null));
 }