Lenguaje

NumberFormatterSettings.IntegerWidth(IntegerWidth) Método

Definición

Especifica el número mínimo y máximo de dígitos que se van a representar antes de la 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

Ancho entero que se va a usar.

Devoluciones

La cadena fluida.

Atributos

Comentarios

Especifica el número mínimo y máximo de dígitos que se van a representar antes de la marca decimal.

  • Cero dígitos enteros mínimos: ".08"
  • Un dígito entero mínimo: "0,08"
  • Dos dígitos enteros mínimos: "00,08"

Pase este método el valor devuelto de IntegerWidth#zeroFillTo(int). Por ejemplo:

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

El valor predeterminado es tener un dígito entero mínimo.

Java documentación para android.icu.number.NumberFormatterSettings.integerWidth(android.icu.number.IntegerWidth).

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a