DecimalFormat.Format Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| Format(BigDecimal, StringBuffer, FieldPosition) |
[icu] Formats an ICU BigDecimal. |
| Format(BigDecimal, StringBuffer, FieldPosition) |
[icu] Formats a BigDecimal. |
| Format(BigInteger, StringBuffer, FieldPosition) |
[icu] Formats a BigInteger. |
| Format(Double, StringBuffer, FieldPosition) |
Specialization of format. |
| Format(Int64, StringBuffer, FieldPosition) |
Specialization of format. |
Format(BigDecimal, StringBuffer, FieldPosition)
[icu] Formats an ICU BigDecimal.
[Android.Runtime.Register("format", "(Landroid/icu/math/BigDecimal;Ljava/lang/StringBuffer;Ljava/text/FieldPosition;)Ljava/lang/StringBuffer;", "GetFormat_Landroid_icu_math_BigDecimal_Ljava_lang_StringBuffer_Ljava_text_FieldPosition_Handler", ApiSince=24)]
public override Java.Lang.StringBuffer? Format(Android.Icu.Math.BigDecimal? number, Java.Lang.StringBuffer? result, Java.Text.FieldPosition? fieldPosition);
[<Android.Runtime.Register("format", "(Landroid/icu/math/BigDecimal;Ljava/lang/StringBuffer;Ljava/text/FieldPosition;)Ljava/lang/StringBuffer;", "GetFormat_Landroid_icu_math_BigDecimal_Ljava_lang_StringBuffer_Ljava_text_FieldPosition_Handler", ApiSince=24)>]
override this.Format : Android.Icu.Math.BigDecimal * Java.Lang.StringBuffer * Java.Text.FieldPosition -> Java.Lang.StringBuffer
Parameters
- number
- BigDecimal
The ICU decimal value to format.
- result
- StringBuffer
The buffer to which the formatted value is appended.
- fieldPosition
- FieldPosition
Identifies the requested number field and receives its output bounds when present.
Returns
The result buffer with the formatted decimal value appended.
- Attributes
Remarks
[icu] Formats an ICU BigDecimal. Specialization of format.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
Format(BigDecimal, StringBuffer, FieldPosition)
[icu] Formats a BigDecimal.
[Android.Runtime.Register("format", "(Ljava/math/BigDecimal;Ljava/lang/StringBuffer;Ljava/text/FieldPosition;)Ljava/lang/StringBuffer;", "GetFormat_Ljava_math_BigDecimal_Ljava_lang_StringBuffer_Ljava_text_FieldPosition_Handler", ApiSince=24)]
public override Java.Lang.StringBuffer? Format(Java.Math.BigDecimal? number, Java.Lang.StringBuffer? result, Java.Text.FieldPosition? fieldPosition);
[<Android.Runtime.Register("format", "(Ljava/math/BigDecimal;Ljava/lang/StringBuffer;Ljava/text/FieldPosition;)Ljava/lang/StringBuffer;", "GetFormat_Ljava_math_BigDecimal_Ljava_lang_StringBuffer_Ljava_text_FieldPosition_Handler", ApiSince=24)>]
override this.Format : Java.Math.BigDecimal * Java.Lang.StringBuffer * Java.Text.FieldPosition -> Java.Lang.StringBuffer
Parameters
- number
- BigDecimal
The Java decimal value to format.
- result
- StringBuffer
The buffer to which the formatted value is appended.
- fieldPosition
- FieldPosition
Identifies the requested number field and receives its output bounds when present.
Returns
The result buffer with the formatted decimal value appended.
- Attributes
Remarks
[icu] Formats a BigDecimal. Specialization of format.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
Format(BigInteger, StringBuffer, FieldPosition)
[icu] Formats a BigInteger.
[Android.Runtime.Register("format", "(Ljava/math/BigInteger;Ljava/lang/StringBuffer;Ljava/text/FieldPosition;)Ljava/lang/StringBuffer;", "GetFormat_Ljava_math_BigInteger_Ljava_lang_StringBuffer_Ljava_text_FieldPosition_Handler", ApiSince=24)]
public override Java.Lang.StringBuffer? Format(Java.Math.BigInteger? number, Java.Lang.StringBuffer? result, Java.Text.FieldPosition? fieldPosition);
[<Android.Runtime.Register("format", "(Ljava/math/BigInteger;Ljava/lang/StringBuffer;Ljava/text/FieldPosition;)Ljava/lang/StringBuffer;", "GetFormat_Ljava_math_BigInteger_Ljava_lang_StringBuffer_Ljava_text_FieldPosition_Handler", ApiSince=24)>]
override this.Format : Java.Math.BigInteger * Java.Lang.StringBuffer * Java.Text.FieldPosition -> Java.Lang.StringBuffer
Parameters
- number
- BigInteger
The arbitrary-precision integer to format.
- result
- StringBuffer
The buffer to which the formatted value is appended.
- fieldPosition
- FieldPosition
Identifies the requested number field and receives its output bounds when present.
Returns
The result buffer with the formatted integer value appended.
- Attributes
Remarks
[icu] Formats a BigInteger. Specialization of format.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
Format(Double, StringBuffer, FieldPosition)
Specialization of format.
[Android.Runtime.Register("format", "(DLjava/lang/StringBuffer;Ljava/text/FieldPosition;)Ljava/lang/StringBuffer;", "GetFormat_DLjava_lang_StringBuffer_Ljava_text_FieldPosition_Handler", ApiSince=24)]
public override Java.Lang.StringBuffer? Format(double number, Java.Lang.StringBuffer? result, Java.Text.FieldPosition? fieldPosition);
[<Android.Runtime.Register("format", "(DLjava/lang/StringBuffer;Ljava/text/FieldPosition;)Ljava/lang/StringBuffer;", "GetFormat_DLjava_lang_StringBuffer_Ljava_text_FieldPosition_Handler", ApiSince=24)>]
override this.Format : double * Java.Lang.StringBuffer * Java.Text.FieldPosition -> Java.Lang.StringBuffer
Parameters
- number
- Double
The floating-point value to format.
- result
- StringBuffer
The buffer to which the formatted value is appended.
- fieldPosition
- FieldPosition
Identifies the requested number field and receives its output bounds when present.
Returns
The result buffer with the formatted floating-point value appended.
- Attributes
Remarks
Specialization of format.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
Format(Int64, StringBuffer, FieldPosition)
Specialization of format.
[Android.Runtime.Register("format", "(JLjava/lang/StringBuffer;Ljava/text/FieldPosition;)Ljava/lang/StringBuffer;", "GetFormat_JLjava_lang_StringBuffer_Ljava_text_FieldPosition_Handler", ApiSince=24)]
public override Java.Lang.StringBuffer? Format(long number, Java.Lang.StringBuffer? result, Java.Text.FieldPosition? fieldPosition);
[<Android.Runtime.Register("format", "(JLjava/lang/StringBuffer;Ljava/text/FieldPosition;)Ljava/lang/StringBuffer;", "GetFormat_JLjava_lang_StringBuffer_Ljava_text_FieldPosition_Handler", ApiSince=24)>]
override this.Format : int64 * Java.Lang.StringBuffer * Java.Text.FieldPosition -> Java.Lang.StringBuffer
Parameters
- number
- Int64
The 64-bit integer to format.
- result
- StringBuffer
The buffer to which the formatted value is appended.
- fieldPosition
- FieldPosition
Identifies the requested number field and receives its output bounds when present.
Returns
The result buffer with the formatted integer value appended.
- Attributes
Remarks
Specialization of format.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.