I need to make use of BigInteger but can't find anything similar in kotlin.
Is there any alternative class in kotlin to BigInteger of java?
or
should I import java class into kotlin?
I need to make use of BigInteger but can't find anything similar in kotlin.
Is there any alternative class in kotlin to BigInteger of java?
or
should I import java class into kotlin?
Or if you are building for multiplatform (experimental in Kotlin 1.2 and 1.3), you can use https://github.com/gciatto/kt-math (I have no affiliation, except that I'm using it). It's basically java.math.* in pure Kotlin (with a few platform-specific extras as part of the MPP). It's really useful for me.