简体   繁体   中英

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?

看看正在执行所需操作的此类EnglishNumberToWords

I'm pretty sure it does not exist as part of any standard library. It's just too rarely used and there are so many ways of doing it (eg your way only work for conversion into English of currency amount, assuming dollars and cents).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM