Lingua

NumberFormatterSettings.IntegerWidth(IntegerWidth) Metodo

Definizione

Specifica il numero minimo e massimo di cifre di cui eseguire il rendering prima del separatore decimale.

[Android.Runtime.Register("integerWidth", "(Landroid/icu/number/IntegerWidth;)Landroid/icu/number/NumberFormatterSettings;", "GetIntegerWidth_Landroid_icu_number_IntegerWidth_Handler", ApiSince=30)]
public virtual Java.Lang.Object? IntegerWidth(Android.Icu.Number.IntegerWidth? style);
[<Android.Runtime.Register("integerWidth", "(Landroid/icu/number/IntegerWidth;)Landroid/icu/number/NumberFormatterSettings;", "GetIntegerWidth_Landroid_icu_number_IntegerWidth_Handler", ApiSince=30)>]
abstract member IntegerWidth : Android.Icu.Number.IntegerWidth -> Java.Lang.Object
override this.IntegerWidth : Android.Icu.Number.IntegerWidth -> Java.Lang.Object

Parametri

style
IntegerWidth

Larghezza integer da utilizzare.

Valori restituiti

Catena fluente.

Attributi

Commenti

Specifica il numero minimo e massimo di cifre di cui eseguire il rendering prima del separatore decimale.

<ul><li>Zero minimum integer digits: ".08" <li>One minimum integer digit: "0.08" <li>Two minimum integer digits: "00.08" </ul>

Passare questo metodo il valore restituito di IntegerWidth#zeroFillTo(int). Per esempio:

NumberFormatter.with().integerWidth(IntegerWidth.zeroFillTo(2))

Il valore predefinito è avere una cifra intera minima.

per android.icu.number.NumberFormatterSettings.integerWidth(android.icu.number.IntegerWidth).

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.

Si applica a