- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Numbers to words???
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2002 10:47 AM
03-07-2002 10:47 AM
Does anyone know of a utility that will convert amounts to the spelled out form? For example, 1234.56 to "One thousand thirty-four and 56/100 "?. I obviously need this for a check writing script.
Thanks in advance, Greg
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2002 10:52 AM
03-07-2002 10:52 AM
Re: Numbers to words???
I remember doing this for someone a few months ago. I provided a C example and also a Perl script that would do just this operation. If you are not a Perl type guy, I could probably spend about two minutes yanking the sunroutine out and driving it with command line arguments.
Anyway, search the Forums for 'english_numbers' and I'm sure you will find the thread. Others may have already looked this up but I don't (or almost never) do searches. I leave that to you.
Regards, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2002 10:58 AM
03-07-2002 10:58 AM
Solutionhttp://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xa0af03bbece8d5118ff40090279cd0f9,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2002 12:48 PM
03-07-2002 12:48 PM
Re: Numbers to words???
I spent a couple of minutes adding a command line parser. It also deals with the problem of supplying amounts with commas.
e.g. 1,234.56 won't kill it because it strips the commas before outputting. Here's the drill:
english.pl 1,234.56 output "One thousand thirty-four and 56/100". One input argument - one output argument BUT if you supply it with mulltiplr ags you get your argument and the words on one line and the next pair on the next lines.
Enjoy, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2002 03:03 PM
03-07-2002 03:03 PM
Re: Numbers to words???
Thank you, Greg