ionspin / kotlin-multiplatform-bignum

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

fix Scale error #223

Closed treeseedm closed 2 years ago

treeseedm commented 2 years ago

scale error, for example var r = 156.10.toBigDecimal().toStringExpanded() assertEquals("156.10", r) the result: expected:<156.1[0]> but was:<156.1[]> Expected :156.10 Actual :156.1 I expected keep two decimals,but “toStringExpanded “ will remove "0",then result will be error. please help me,thank you

CLAassistant commented 2 years ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


eli seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

ionspin commented 2 years ago

I am not completely sure this would provide the desired result, as in some cases there might be more than one trailing zero, also the Contributor License Agreement is not signed so I'll close this pull request.