FormatDecimal() 개인적인 메소드

private FormatDecimal ( Decimal value, String format, NumberFormatInfo info ) : String
value Decimal
format String
info System.Globalization.NumberFormatInfo
리턴 String
예제 #1
0
 public static String Format(Currency value, String format, NumberFormatInfo info)
 {
     if (info == null)
     {
         info = NumberFormatInfo.CurrentInfo;
     }
     return(Number.FormatDecimal(ToDecimal(value), format, info));
 }
예제 #2
0
 public String ToString(String format, IFormatProvider provider)
 {
     Contract.Ensures(Contract.Result <String>() != null);
     return(Number.FormatDecimal(this, format, provider));
 }
예제 #3
0
 // Converts this Decimal to a string. The resulting string consists of an
 // optional minus sign ("-") followed to a sequence of digits ("0" - "9"),
 // optionally followed by a decimal point (".") and another sequence of
 // digits.
 //
 public override String ToString()
 {
     Contract.Ensures(Contract.Result <String>() != null);
     return(Number.FormatDecimal(this, null, null));
 }
예제 #4
0
 public String ToString(IFormatProvider provider)
 {
     Contract.Ensures(Contract.Result <String>() != null);
     return(Number.FormatDecimal(this, null, NumberFormatInfo.GetInstance(provider)));
 }
예제 #5
0
 public String ToString(String format)
 {
     Contract.Ensures(Contract.Result <String>() != null);
     return(Number.FormatDecimal(this, format, NumberFormatInfo.CurrentInfo));
 }
예제 #6
0
 public String ToString(String format, IFormatProvider provider)
 {
     return(Number.FormatDecimal(this, format, NumberFormatInfo.GetInstance(provider)));
 }
예제 #7
0
 public String ToString(String format)
 {
     return(Number.FormatDecimal(this, format, NumberFormatInfo.CurrentInfo));
 }
예제 #8
0
 // Converts this Decimal to a string. The resulting string consists of an
 // optional minus sign ("-") followed to a sequence of digits ("0" - "9"),
 // optionally followed by a decimal point (".") and another sequence of
 // digits.
 //
 public override String ToString()
 {
     return(Number.FormatDecimal(this, null, NumberFormatInfo.CurrentInfo));
 }
예제 #9
0
파일: Decimal.cs 프로젝트: zdrsh/coreclr
 public string ToString(IFormatProvider provider)
 {
     return(Number.FormatDecimal(this, null, NumberFormatInfo.GetInstance(provider)));
 }
예제 #10
0
 public String ToString(String format, IFormatProvider provider)
 {
     return(Number.FormatDecimal(this, format, provider));
 }
예제 #11
0
 public String ToString(IFormatProvider provider)
 {
     return(Number.FormatDecimal(this, null, provider));
 }
예제 #12
0
 public String ToString(String format)
 {
     return(Number.FormatDecimal(this, format, null));
 }
예제 #13
0
 // Converts this Decimal to a string. The resulting string consists of an
 // optional minus sign ("-") followed to a sequence of digits ("0" - "9"),
 // optionally followed by a decimal point (".") and another sequence of
 // digits.
 //
 public override String ToString()
 {
     return(Number.FormatDecimal(this, null, null));
 }