Companion

object Companion

Functions

Link copied to clipboard
fun from(input: Double, suppressedExponent: Int = 0): PluralOperand

Explicitly set suppressedExponent for Compact format numbers.

fun from(input: Int, suppressedExponent: Int = 0): PluralOperand
fun from(input: Long, suppressedExponent: Int = 0): PluralOperand

Explicitly set suppressedExponent for Compact format numbers. The exponent is explicitly denoted; e.g., fromCompact(1L, 6) is equivalent to "1 Million" However, fromCompact(1000000L, 6) will result in "1000000 million"

fun from(input: Number, suppressedExponent: Int = 0): PluralOperand

Create a PluralOperand from a given Number type.

fun from(s: String?, suppressedExponent: Int = 0): PluralOperand?

Create a PluralOperand from a String.