Added in API level 34

TrailingZeroDisplay


class TrailingZeroDisplay
kotlin.Any
   ↳ kotlin.Enum<android.icu.number.NumberFormatter.TrailingZeroDisplay>
   ↳ android.icu.number.NumberFormatter.TrailingZeroDisplay

An enum declaring how to render trailing zeros.

  • AUTO: 0.90, 1.00, 1.10
  • HIDE_IF_WHOLE: 0.90, 1, 1.10

Summary

Enum values

Display trailing zeros according to the settings for minimum fraction and significant digits.

Same as AUTO, but hide trailing zeros after the decimal separator if they are all zero.

Enum values

AUTO

Added in API level 34
enum val AUTO : NumberFormatter.TrailingZeroDisplay

Display trailing zeros according to the settings for minimum fraction and significant digits.

HIDE_IF_WHOLE

Added in API level 34
enum val HIDE_IF_WHOLE : NumberFormatter.TrailingZeroDisplay

Same as AUTO, but hide trailing zeros after the decimal separator if they are all zero.