NumberToString() public static method

public static NumberToString ( double value, IFormatProvider fp ) : string
value double
fp IFormatProvider
return string
コード例 #1
0
        public string ToString(string format, IFormatProvider formatProvider)
        {
            NumberFormatInfo nfi = NumberFormatInfo.GetInstance(formatProvider);

            return(NumberFormatter.NumberToString(format, this.m_value, nfi));
        }
コード例 #2
0
ファイル: UInt64.cs プロジェクト: raj581/Marvin
 public string ToString(string format, IFormatProvider provider)
 {
     return(NumberFormatter.NumberToString(format, m_value, provider));
 }
コード例 #3
0
ファイル: UInt64.cs プロジェクト: raj581/Marvin
 public override string ToString()
 {
     return(NumberFormatter.NumberToString(m_value, null));
 }
コード例 #4
0
ファイル: Double.cs プロジェクト: msruzy/digimon-linkz-client
 /// <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));
 }
コード例 #5
0
ファイル: SByte.cs プロジェクト: Astaelan/Fusion
 public string ToString(string format, IFormatProvider formatProvider)
 {
     return(NumberFormatter.NumberToString(format, mValue, NumberFormatInfo.GetInstance(formatProvider)));
 }
コード例 #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));
 }