numOf

abstract fun numOf(value: BigDecimal): Real
abstract fun numOf(value: Double): Real
abstract fun numOf(value: Float): Real

Creates a Real out of value. See Numeric.of.


abstract fun numOf(value: BigInteger): Integer
abstract fun numOf(value: Int): Integer
abstract fun numOf(value: Long): Integer
abstract fun numOf(value: Short): Integer
abstract fun numOf(value: Byte): Integer

Creates an Integer out of value. See Numeric.of.


abstract fun numOf(value: String): Numeric

Parses value into a Numeric, preferring Integer and falling back to Real. See Numeric.of.

Throws

if value cannot be parsed as either


abstract fun numOf(value: Number): Numeric

Creates a Numeric out of value. See Numeric.of.