ionspin / kotlin-multiplatform-bignum

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

Decimal mode was expanding significand and messing up the hash code #167

Closed ionspin closed 3 years ago

ionspin commented 3 years ago

So we dont return decimal mode when removeTrailingZeroes is applied. Also added signum() to end of doubleValue() conversion so the sign is correct in all cases