Is BigDecimal supported as input type?
longquangpham90 opened this issue · comments
longpq commented
Hi team dev!
We user library, but we want use BigDecimal Format number, library can not support
Tobias Schürg commented
@longquangpham90 I don't really understand the issue, can you please explain?
longpq commented
@tobiasschuerg so we want input type class BigDecimal
https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html
Tobias Schürg commented
You can create Money objects from BigDecimals already:
val pi = BigDecimal(3.14159265359)
Money(pi, usDollar)
Also for all operations BigDecimal is used internally
android-money/money/src/main/java/de/tobiasschuerg/money/Money.kt
Lines 19 to 27 in f2965c4
Does this address your issue?