473,385 Members | 1,925 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to convert currency from numbers to words

Hi everybody i am new to this group i want to clarify my doubt that
how can i write a program that converts corrency from digits to words
is there any function.
example if i enter 5430 . output should be : five thousand four
hundred thirty

Jul 14 '07 #1
5 3629
ve*********@gmail.com wrote, On 14/07/07 10:57:
Hi everybody i am new to this group i want to clarify my doubt that
how can i write a program that converts corrency from digits to words
is there any function.
example if i enter 5430 . output should be : five thousand four
hundred thirty
There is no built in function to do it, you will have to write your own.
Once you have made an attempt, post it and people will help.
--
Flash Gordon
Jul 14 '07 #2

<ve*********@gmail.comwrote in message
news:11**********************@i13g2000prf.googlegr oups.com...
Hi everybody i am new to this group i want to clarify my doubt that
how can i write a program that converts corrency from digits to words
is there any function.
example if i enter 5430 . output should be : five thousand four
hundred thirty
It can be done, though it is quite tricky. Actually this is often used by
lispers to demonstrate the superiority of a functional approach - think of
single digits and teens, low tens and high tens, and then recursively.

--
Free games and programming goodies.
http://www.personal.leeds.ac.uk/~bgy1mm
Jul 14 '07 #3
ve*********@gmail.com wrote:
Hi everybody i am new to this group i want to clarify my doubt that
how can i write a program that converts corrency from digits to words
is there any function.
example if i enter 5430 . output should be : five thousand four
hundred thirty
Mine says:

Enter a dollar amount: 5430
five thousand four hundred thirty dollars only

Enter a dollar amount: 54.30
fifty four dollars and thirty cents

It wasn't that hard to write. Try it.

Or I'll sell it to you?

--
Joe Wright
"Everything should be made as simple as possible, but not simpler."
--- Albert Einstein ---
Jul 14 '07 #4
On Jul 14, 5:55 pm, Joe Wright <joewwri...@comcast.netwrote:
venkat.y...@gmail.com wrote:
Hi everybody i am new to this group i want to clarify my doubt that
how can i write a program that converts corrency from digits to words
is there any function.
example if i enter 5430 . output should be : five thousand four
hundred thirty

Mine says:

Enter a dollar amount: 5430
five thousand four hundred thirty dollars only

Enter a dollar amount: 54.30
fifty four dollars and thirty cents

It wasn't that hard to write. Try it.

Or I'll sell it to you?

--
Joe Wright
"Everything should be made as simple as possible, but not simpler."
--- Albert Einstein ---
please can you send me the program

Jul 15 '07 #5
ve*********@gmail.com writes:
On Jul 14, 5:55 pm, Joe Wright <joewwri...@comcast.netwrote:
>venkat.y...@gmail.com wrote:
Hi everybody i am new to this group i want to clarify my doubt that
how can i write a program that converts corrency from digits to words
is there any function.
example if i enter 5430 . output should be : five thousand four
hundred thirty

Mine says:

Enter a dollar amount: 5430
five thousand four hundred thirty dollars only

Enter a dollar amount: 54.30
fifty four dollars and thirty cents

It wasn't that hard to write. Try it.

Or I'll sell it to you?

please can you send me the program
Why, so you can submit it to your instructor and pretend that you
wrote it yourself? Why should anybody here help you cheat?

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Jul 15 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Klaus Neuner | last post by:
Hello, I need a function that converts a list into a set of regexes. Like so: string_list = print string_list2regexes(string_list) This should return something like:
3
by: Dalan | last post by:
Is there any code available to address currency rounding problems in Access 97? Apparently, selecting currency type table fields does not resolve the problem. For instance, in my form I have a...
3
by: D | last post by:
Does anyone have a VBA code that converts numbers to Spelled out numbers? Example 100 to One Hundred. I need it for a check writing program and I don't feel like reinventing the wheel. Thanks
0
by: R. John Reed | last post by:
Hi All, I'm am looking to convert a currency string (e.g. "$1,234.56" to a double value). It appears this will work: double val = Convert.ToDouble(Double.Parse­("$123,456.78901",...
2
by: Chakravarthy | last post by:
Given an XML stream as below, is there any possibility to convert the same into any treditional class style with . (dots) as seperator of the nodes of the xml file... for instance ...
52
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I convert a Number into a String with exactly 2 decimal places?...
1
by: czi02 | last post by:
Hi there; Is there anybody out there knows how to design a function or data flow on how to convert a numerical currency valu (33,163.33) into words 33Million one hundred sixty three thousand...
2
vivek kushwaha
by: vivek kushwaha | last post by:
Hi guys, I need codes to convert Currency into Words. e.g. 120,500 into "One Lac. Five hundred only." in asp.net with vb.net 1.1. Please if anybody know about it. Reply me. Vivek.
8
code green
by: code green | last post by:
I am being sent a CSV file with ID numbers somehow converted to scientific format ie 1.93E+11 and 3.70E+9. In theory the same thing could happen to telephone numbers or even currency. I am trying...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.