ionspin / kotlin-multiplatform-bignum

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

Decimal mode is not applied when creating BigDecimal without scale #244

Closed ionspin closed 2 years ago

ionspin commented 2 years ago

Describe the bug BigDecimal init disregards decimal mode when scale is not used

To Reproduce Steps to reproduce the behavior:

  1. Create a big decimal with custom decmal mode and no scale

Expected behavior Decimal mode is applied

Platform

ionspin commented 2 years ago

And as precision is going to be removed, I won't be fixing this as it will be changed in a rewrite