# NumberInWords ( NumberIn ; Currency ; DecimalCurr )

Convert Number to Words, including currency terms.

 Chris Harvey Bank of Bermuda http://www.bankofbermuda.bm

Sample input:
61915.21
Sample output:
Sixty One Thousand Nine Hundred Fifteen Dollars and Twenty One Cents

Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

This should work for most currencies, or even other units such as gallons or litres, etc. Give a null value for Currency if you don't want one. If you want the decimal part to be ignored, set Decimalcurr to "None".
In it's current form this function will handle values into the Trillions. As it works recursively, you can change the Out of Range check value and the names in one Choose function to extend it. It can also handle British Billions by changing the one Choose list.

 krishna, BnagaloreJun 7, 2016 Hello, Kindly help me how can above custom function can be used to convert number to words in vtiget invoice /sales orders. Regards, Krishnaprasad PB
 Philip McGeehan, SMD LtdJul 5, 2016 You need FileMaker Pro Advanced to create a new custom function called NumberInWords with the parameters: "NumberIn"; "Currency"; and "DecimalCurr"; and the calculation as above. Then you can create a new calculation field as text in your invoice/sales orders table with the calculation: NumberInWords ( YOURNUMBERFIELD ; "pounds" ; "pence" ) Change the YOURNUMBERFIELD text to the field name where your number you want to convert is.
 Seamus Berkeley, TaosDec 22, 2016 Thanks so much for this custom function, Chrisâ€”works super! Just one minor edit: the text "Four" has an added space at the end of the word (as written "Four "). Just removed that space in two places and now result has no double spacing.
 KireetOct 3, 2018 Hi Philip. This function works great. However, (since I am an amateur at this) I need to write amount in words in Crores, Lac, Thousands (Indian currency).... How can I do that?
 Messahel messaoud, nowhereMay 13, 2020 hello thx for this amazing function . by the way i translate your function to arabic . i hop you like what am doing https://www.briandunning.com/cf/2377
 Binu Alexander, ASC,Aug 30, 2020 Works well for INR and Paisa too !

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

### Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: