Is any Joda library method is there to convert Joda.Money to Pennies?

68 Views Asked by At

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:

  1. tried with Money.getAmountMinorInt() and it's returning with multiplies of 100.
  2. getAmount * 100

not sure using getAmountMinorInt is correct.

Which way of converting is correct or any other library method available to convert it?

0

There are 0 best solutions below