I'm looking for code that converts something like this:

24120.10 into something like this:

twenty-four thousand, one hundred and twenty point one

The hope is to emulate Python's num2words.

I figure anyone who had to write a check printing feature years ago might
have something along these lines, and may be willing to share. I'm not
trying to print checks, that's just an example.

Definitely after native code, hoping to avoid a PHP call.

For reference, Dani Beaubien sent me a link to an old post from Garri Ogata
with something like the code I'm asking about:


http://4d.1045681.n5.nabble.com/Number-To-Text-native-4D-code-td4864780.html

I also found what looks like a version of that code here:

https://kb.4d.com/assetid=76423

This version has a bunch of extra ) characters, but runs once you fix them.
However, this code does *not* include decimals. I'd like to keep the
decimals part.

Thanks for any help.
**********************************************************************
4D Internet Users Group (4D iNUG)
New Forum: https://discuss.4D.com
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to