Search code examples
javabigdecimal

Convert BigDecimal to String for a check


Is there a library or a call that will convert a BigDecimal value to a string to print on checks?

Example: 1323.03

One Thousand Three Hundred Twenty-Three Dollars and Three Cents

I have seen some examples that create a recursive function to do this but I was wondering if it was part of any standard library?


Solution

  • Look at this class EnglishNumberToWords that is doing what you want.