C++ function to convert numbers to words

Completed Posted Feb 7, 2007 Paid on delivery
Completed Paid on delivery

I need a simple c++ function to convert an integer to words.

string words=number2words(number);

It should accept anything from 0 to 999999999, and the return type should be a C++ style string (not a character array).

So for example, 2489991 would return:

"Two Million Four Hundred Eighty Nine Thousand Nine Hundred Ninety One"

It's not supposed to be a class, just a simple function with good comments. I know it is a very simple task, I just haven't got the time right now and I need it in my project.

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Deliverables must be in ready-to-run condition, as follows? (depending on the nature? of the deliverables):

a)? For web sites or? other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.

b) For all others including desktop software or software the buyer intends to distribute: A software? installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.

3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).

## Platform

Win32

C Programming Engineering Microsoft MySQL PHP Software Architecture Software Testing Windows Desktop

Project ID: #2830702

About the project

51 proposals Remote project Active Feb 9, 2007

Awarded to:

buryakalexandr

See private message.

$1 USD in 5 days
(13 Reviews)
3.6

51 freelancers are bidding on average $9 for this job

yazwas

See private message.

$12.75 USD in 5 days
(113 Reviews)
6.7
olit

See private message.

$6.8 USD in 5 days
(140 Reviews)
6.2
bitdonkey

See private message.

$4.25 USD in 5 days
(115 Reviews)
6.2
marchent

See private message.

$12.75 USD in 5 days
(170 Reviews)
6.3
waster

See private message.

$12.75 USD in 5 days
(148 Reviews)
6.0
stephen85

See private message.

$8.5 USD in 5 days
(159 Reviews)
6.0
AncaU

See private message.

$12.75 USD in 5 days
(112 Reviews)
5.3
infoliteits

See private message.

$12.75 USD in 5 days
(46 Reviews)
5.6
jvozab

See private message.

$10.2 USD in 5 days
(26 Reviews)
5.0
michaelrybakvw

See private message.

$8.5 USD in 5 days
(45 Reviews)
5.0
TheCyberTech

See private message.

$7.65 USD in 5 days
(15 Reviews)
4.4
GVytas

See private message.

$12.75 USD in 5 days
(16 Reviews)
4.5
coder2000

See private message.

$8.5 USD in 5 days
(40 Reviews)
4.6
nainvw

See private message.

$6.8 USD in 5 days
(5 Reviews)
4.3
mastermind081

See private message.

$11.9 USD in 5 days
(9 Reviews)
3.6
topubuf

See private message.

$7.65 USD in 5 days
(8 Reviews)
3.5
CoDecode

See private message.

$12.75 USD in 5 days
(14 Reviews)
3.6
alirazashaikhvw

See private message.

$12.75 USD in 5 days
(42 Reviews)
4.0
BitwiseSoftware

See private message.

$6.8 USD in 5 days
(41 Reviews)
3.7
MrPig

See private message.

$8.5 USD in 5 days
(12 Reviews)
3.2