Skip to content
This repository has been archived by the owner on Apr 5, 2019. It is now read-only.

juggernaut0/bigint

Repository files navigation

BigInt

Kotlin Multiplatform implementation of arbitrary-precision integers. For use in cross-platform applications without the need of expect/actual declarations.

Maven Dependency

Coming Soon

Usage

Extension functions are provided for easy conversion.

// From Int
1234567.toBigInteger()
// From Long
123456789012345678L.toBigInteger()
// From String
"123456789012345678901234567890".toBigInteger()

TODOs

  • Improve performance, especially of String.toBigInteger()
  • Support pow, exp, log, and other operations