Idioma

NumberFormatterSettings.IntegerWidth(IntegerWidth) Método

Definição

Especifica o número mínimo e máximo de dígitos a serem renderizados antes da marca decimal.

[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

Parâmetros

style
IntegerWidth

A largura de inteiro a ser usada.

Retornos

A cadeia fluente.

Atributos

Comentários

Especifica o número mínimo e máximo de dígitos a serem renderizados antes da marca decimal.

<ul><li>Zero dígitos inteiros mínimos: ".08" <li>Um dígito inteiro mínimo: "0,08" <li>Dois dígitos inteiros mínimos: "00,08" </ul>

Passe este método o valor retornado de IntegerWidth#zeroFillTo(int). Por exemplo:

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

O padrão é ter um dígito inteiro mínimo.

Java documentação para android.icu.number.NumberFormatterSettings.integerWidth(android.icu.number.IntegerWidth).

Partes desta página são modificações baseadas no trabalho criado e compartilhado pelo Project Open Source do Open Source e usadas de acordo com os termos descritos na Creative Commons 2.5.

Aplica-se a