Package-level declarations

Functions

Link copied to clipboard
fun String.safeToBigDecimal(defaultValue: BigDecimal, mathContext: MathContext? = null): Serializable

Parses the string as a java.math.BigDecimal number and returns the result.

Link copied to clipboard
fun String.safeToBigInteger(defaultValue: BigInteger, radix: Int = 10): BigInteger

Parses the string as a java.math.BigInteger number and returns the result.

Link copied to clipboard
fun String.safeToDouble(defaultValue: Double): Double

Parses the string as an Double number and returns the result.

Link copied to clipboard
fun String.safeToFloat(defaultValue: Float): Float

Parses the string as an Float number and returns the result.

Link copied to clipboard
fun String.safeToInt(defaultValue: Int, radix: Int = 10): Int

Parses the string as an Int number and returns the result.

Link copied to clipboard
fun String.safeToLong(defaultValue: Long, radix: Int = 10): Long

Parses the string as an Long number and returns the result.