ChoiceFormat.Format Method

Definition

Overloads

Format(Double, StringBuffer, FieldPosition)

Returns pattern with formatted double.

Format(Int64, StringBuffer, FieldPosition)

Specialization of format.

Format(Double, StringBuffer, FieldPosition)

Returns pattern with formatted double.

[Android.Runtime.Register("format", "(DLjava/lang/StringBuffer;Ljava/text/FieldPosition;)Ljava/lang/StringBuffer;", "GetFormat_DLjava_lang_StringBuffer_Ljava_text_FieldPosition_Handler")]
public override Java.Lang.StringBuffer? Format (double number, Java.Lang.StringBuffer? toAppendTo, Java.Text.FieldPosition? status);
[<Android.Runtime.Register("format", "(DLjava/lang/StringBuffer;Ljava/text/FieldPosition;)Ljava/lang/StringBuffer;", "GetFormat_DLjava_lang_StringBuffer_Ljava_text_FieldPosition_Handler")>]
override this.Format : double * Java.Lang.StringBuffer * Java.Text.FieldPosition -> Java.Lang.StringBuffer

Parameters

number
Double

number to be formatted and substituted.

toAppendTo
StringBuffer

where text is appended.

status
FieldPosition

ignore no useful status is returned.

Returns

Attributes

Remarks

Returns pattern with formatted double.

Java documentation for java.text.ChoiceFormat.format(double, java.lang.StringBuffer, java.text.FieldPosition).

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")]
public override Java.Lang.StringBuffer? Format (long number, Java.Lang.StringBuffer? toAppendTo, Java.Text.FieldPosition? status);
[<Android.Runtime.Register("format", "(JLjava/lang/StringBuffer;Ljava/text/FieldPosition;)Ljava/lang/StringBuffer;", "GetFormat_JLjava_lang_StringBuffer_Ljava_text_FieldPosition_Handler")>]
override this.Format : int64 * Java.Lang.StringBuffer * Java.Text.FieldPosition -> Java.Lang.StringBuffer

Parameters

number
Int64

number to be formatted and substituted.

toAppendTo
StringBuffer

where text is appended.

status
FieldPosition

ignore no useful status is returned.

Returns

Attributes

Remarks

Specialization of format. This method really calls format(double, StringBuffer, FieldPosition) thus the range of longs that are supported is only equal to the range that can be stored by double. This will never be a practical limitation.

Java documentation for java.text.ChoiceFormat.format(long, java.lang.StringBuffer, java.text.FieldPosition).

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