ionspin / kotlin-multiplatform-bignum

A Kotlin multiplatform library for arbitrary precision arithmetics
Apache License 2.0
339 stars 40 forks source link

Can't Parse BigDecimal from Response API #264

Closed abdhilabs closed 12 months ago

abdhilabs commented 12 months ago

Hi, I got this error, when receive data from API. Is this library only can parse from String to BigDecimal?

Screenshot 2023-07-14 at 07 32 27

ionspin commented 12 months ago

Hi @abdhilabs, BigDecimal doesn't support kotlinx serialization directly, but I did provide custom serializers some time ago, it's mentioned in the readme here https://github.com/ionspin/kotlin-multiplatform-bignum#serialization

Hope this helps. Also I am closing this as it's not an issue.