1. Computing & Technology

Discuss in my forum

Just Useful :: In most accounting applications there is a need to convert currency values to words. Here's a sample project to convert (depending on the real type used) positive and negative real values up to 1.00E18 to English words. The return value can represent either currency or numerals. For example 1234.567 will be returned as "one thousand, two hundred and thirty four dollars and fifty six cents". Full Delphi source code included.

Read the full article to learn how to Convert Numbers (Currency) to Words

Related:

Comments
May 14, 2009 at 5:48 am
(1) Arvid :

Hi,

should be “1 dollar 10 cent”, shouldn’t it?

Regards,
Arvid

May 14, 2009 at 6:15 am
(2) Zarko Gajic :

:) Fixed. Thanks for noticing…

May 14, 2009 at 12:33 pm
(3) Fable :

Zlatko,
imaš sitnu grešku na liniji 125

sDecValue := Copy(FormatFloat(’.#########’, frac(abs(Number))), 0, 2);

falila je nula (0).

I ne radi baš sa hrvatskim odvajanjem decimala :-)

Pozdrav!

May 14, 2009 at 12:35 pm
(4) Fable :

I da,

zaboravio sam napomenuti da je na engleskom malo lakše isprogramirati nego na hrvatskom :-)

May 14, 2009 at 3:01 pm
(5) Zarko Gajic :

@Fable,

Please write comments in English (so others can understand). Thanks for the tip on the missing “0″.

May 14, 2009 at 3:04 pm
(6) Fable :

Sorry Zlatko, I forgot.. :-)
NP…

May 15, 2009 at 9:01 am
(7) TulkasLord :

Hi, nice example. go on.

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

©2012 About.com. All rights reserved.

A part of The New York Times Company.