PluralOperand

Wrapper for numbers

PluralOperands contain information about the structure of a number, which can change plural conventions depending upon the language/locale.

A BigDecimal or String can be used instead of numeric types to better establish precision (for example, trailing zeros), for which the handling of plural forms can be locale-dependent.

If a number is expressed in compact form, the exponent is suppressed. For example, "2.3 Million" the exponent is 6. This can change pluralization for certain languages. Use fromCompact() methods to explicitly suppress an exponent.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val e: Int
Link copied to clipboard
val f: Int
Link copied to clipboard
val i: Long
Link copied to clipboard
val n: Double

absolute value of input (integer and decimals)

Link copied to clipboard
val t: Int
Link copied to clipboard
val v: Int
Link copied to clipboard
val w: Int

Functions

Link copied to clipboard
open override fun toString(): String

For debugging, not display.