Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to convert amount in numbers to amount in words

Status
Not open for further replies.

ldojoles

Programmer
Apr 1, 2007
22
0
0
PH
good day...

im creating a check writing program my poblem is in the conversion of amount in number to words... eg

$5, 235.25

i want my program to automatically generate...

five thousand two hundred thirty five 25/100


is this possible ?
 
Uhm...yes.

I suppose though you want to know something beyond that, though. You want to set up a table with all the word values representing each digit or part and then parse out the original value using that.

If you want a sample, I don't have one on hand in Pascal/Delphi, but a sample of doing it in COBOL is listed in this link.
 
This has come up at least twice before, see:
thread102-536284
thread102-1114704

Clive
Runner_1Revised.gif

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"To err is human, but to really foul things up you need a computer." (Paul Ehrlich)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To get the best answers from this forum see: faq102-5096
 
Dr. Bob Swart's site had an example of this implemented as a Web service, too. You can rip the conversion logic from that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top