Replies: 1 comment 3 replies
-
Hi @dankito , if you find these converters useful, I'd love to add them to the library, so a pull request would be great. As far as the correctness goes, conversion from java big decimal using string as intermediary would work, but I think it would be too inefficient, so I'd suggest solving that with a more direct approach (i.e. by using Java BigDecimal internal Java BigInteger intValue and scale) For the conversion to Java Big Decimal, the result wouldn't be completely correct, because |
Beta Was this translation helpful? Give feedback.
-
Hi,
I created some extension methods to convert BigDecimal to / from Java BigDecimal (see below).
Two questions here:
Are they correct and do you have any suggestions how to improve them (especially for converting from)?
If i give you a pull request with them, would you like to integrate it into the jvmMain branch of your library?
Beta Was this translation helpful? Give feedback.
All reactions