I want to convert Joda.Money to pennies. Is there any Joda library method available?
Sample input:
USD 233.33
Sample output:
23333
Tried below 2 options:
- tried with
Money.getAmountMinorInt()
and it's returning with multiplies of 100. - getAmount * 100
not sure using getAmountMinorInt
is correct.
Which way of converting is correct or any other library method available to convert it?