commonMain.com.apollographql.apollo.api.BigDecimal.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apollo-api Show documentation
Show all versions of apollo-api Show documentation
Apollo GraphQL API classes
package com.apollographql.apollo.api
// BigDecimal cannot subclass `Number` in JS, as it will cause runtime trap in any compiled Kotlin/JS product in the module initialization
// script.
expect class BigDecimal {
constructor(strVal: String)
constructor(doubleVal: Double)
constructor(intVal: Int)
constructor(longVal: Long)
fun add(augend: BigDecimal): BigDecimal
fun subtract(subtrahend: BigDecimal): BigDecimal
fun multiply(multiplicand: BigDecimal): BigDecimal
fun divide(divisor: BigDecimal): BigDecimal
fun negate(): BigDecimal
fun signum(): Int
}
expect fun BigDecimal.toNumber(): Number
© 2015 - 2025 Weber Informatics LLC | Privacy Policy