ionspin / kotlin-multiplatform-bignum

A Kotlin multiplatform library for arbitrary precision arithmetics
Apache License 2.0
361 stars 41 forks source link

Add wasmjs #274

Closed ionspin closed 9 months ago

ionspin commented 9 months ago

WASM platform is experimental, use with caution. Note that currently wasm returns a value after converting to IEEE-754 number, unlike other platforms (JVM, JS, Native), so if you use:

val a = BigDecimal.fromFloat(0.000000000000123f)

expect a to be 1.2299999885799495E-13.

ionspin commented 9 months ago

Fixes #273 Need to recreate GitHub runners to run tests and publish a snapshot before merging this