
Offers a multiplatform BigInteger library, addressing the lack of native support for BigInteger types. Serialization is optional via a separate module, enhancing flexibility.
Kotlin Multiplatform BigInteger library.
| Platform | Implementation |
|---|---|
| JVM | BigInteger |
| Android | BigInteger |
| JS | BigInt* |
| Native | LibTomMath |
| WASM | Not implemented |
* Kotlin/JS does not fully support BigInt (KT-48980).
Kotlin does not support BigInteger and BigDecimal types in multiplatform projects (KT-20912).
However, I was not interested in BigDecimal so this library only implements BigInteger.
Serialization is implemented in a separate module so the main library can be used on its own.
Apache Commons Math in JVM.gmp).Kotlin Multiplatform BigInteger library.
| Platform | Implementation |
|---|---|
| JVM | BigInteger |
| Android | BigInteger |
| JS | BigInt* |
| Native | LibTomMath |
| WASM | Not implemented |
* Kotlin/JS does not fully support BigInt (KT-48980).
Kotlin does not support BigInteger and BigDecimal types in multiplatform projects (KT-20912).
However, I was not interested in BigDecimal so this library only implements BigInteger.
Serialization is implemented in a separate module so the main library can be used on its own.
Apache Commons Math in JVM.gmp).