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!

converting amount in words

Status
Not open for further replies.

paul102384

Programmer
Oct 5, 2007
30
hi to all pb programmers:

I want to asked if how can i convert an amount in words.

e.g. 1,280.85

output: One Thousand Two Hundred Eighty and eighty five centavos

thanks in advance...
 
There is no native function for that in PB.
You should write your own function.
I think you should use mod() function and string table with names.
 
As stated, there is nothing native that I know of.

You're looking at either using something like Mariaszek suggested, or a nice function involving loops and nested choose statements.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top