473,382 Members | 1,519 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,382 software developers and data experts.

Convert Number to Word

rajiv07
141 100+
Hi to all ,

Is any Perl module for converting number to word

Ex. 1-one
2-two

Is any idea please.

Thanks.
Dec 8 '07 #1
9 10045
numberwhun
3,509 Expert Mod 2GB
Hi to all ,

Is any Perl module for converting number to word

Ex. 1-one
2-two

Is any idea please.

Thanks.
Have you gone out to cpan and searched for numbers to words?

You should really try searching yourself before posting as we will quite possibly ask you what your returned.

Regards,

Jeff
Dec 8 '07 #2
Have you gone out to cpan and searched for numbers to words?

You should really try searching yourself before posting as we will quite possibly ask you what your returned.

Regards,

Jeff
I always enjoy seeing the self-righteo, erm... helpful people post 'answers' like this.

The CPAN Search you recommend above returns 415 results, of which the two most appropriate (in my own opinion) _real_ answers (Lingua::EN::Numbers or Lingua::EN::Numbers::Easy ) are not to be found on the first page of results. In fact, Linuga::EN:Numbers::Easy does not show up until page 32, where it is the 315th result and Lingua::EN::Numbers doesn't even make the results list at all.
Feb 27 '08 #3
KevinADC
4,059 Expert 2GB
I always enjoy seeing the self-righteo, erm... helpful people post 'answers' like this.

The CPAN Search you recommend above returns 415 results, of which the two most appropriate (in my own opinion) _real_ answers (Lingua::EN::Numbers or Lingua::EN::Numbers::Easy ) are not to be found on the first page of results. In fact, Linuga::EN:Numbers::Easy does not show up until page 32, where it is the 315th result and Lingua::EN::Numbers doesn't even make the results list at all.
If you wish to elaborate on a suggestion another person made, you should, or correct them if they made a mistake, or show a better way of doing something, those are all welcome and I think appreciated but the condesending attitude is not welcome. Everyone is free to help to the extent they want to, by suggesting a general search of CPAN or specific modules or whatever.
Feb 27 '08 #4
If you wish to elaborate on a suggestion another person made, you should, or correct them if they made a mistake, or show a better way of doing something, those are all welcome and I think appreciated but the condesending attitude is not welcome. Everyone is free to help to the extent they want to, by suggesting a general search of CPAN or specific modules or whatever.

Condescending is exactly how I would have described the original response. Someone asked a simple question and was not told the answer, but instead berated for wasting the time of people on the forum by not bothering to have done due diligence. The irony was that the suggested path to due diligence was to search CPAN and the trouble to provide a link to the search required was gone to... But clearly the responder, a moderator on this forum, had not gone to the due diligence to verify that the suggested search would actually answer the question.

Now, I may have taken exception to such a singularly unhelpful response and further made my opinion on it known. However, I at least did go to the trouble to run the search, find the modules, where they fell in the search results, and direct the original poster (admittedly quite late) to them.

To say that people are free to help to the degree they are willing is all well and good. But the 'help' should actually be help, not condescending reproaches that assume laziness on the part of the original poster. Had I not already have been aware that such a module existed and a vague recollection of its name, I probably would have despaired well before reaching the 31st page of results and resorted to posting on a forum in hopes that someone knew the answer.

Though to be honest, I may well have posed somewhere where I've found help offered in a friendly way in the past, like Perl Monks rather than here.
Feb 27 '08 #5
KevinADC
4,059 Expert 2GB
Condescending is exactly how I would have described the original response. Someone asked a simple question and was not told the answer, but instead berated for wasting the time of people on the forum by not bothering to have done due diligence. The irony was that the suggested path to due diligence was to search CPAN and the trouble to provide a link to the search required was gone to... But clearly the responder, a moderator on this forum, had not gone to the due diligence to verify that the suggested search would actually answer the question.

Now, I may have taken exception to such a singularly unhelpful response and further made my opinion on it known. However, I at least did go to the trouble to run the search, find the modules, where they fell in the search results, and direct the original poster (admittedly quite late) to them.

To say that people are free to help to the degree they are willing is all well and good. But the 'help' should actually be help, not condescending reproaches that assume laziness on the part of the original poster. Had I not already have been aware that such a module existed and a vague recollection of its name, I probably would have despaired well before reaching the 31st page of results and resorted to posting on a forum in hopes that someone knew the answer.

Though to be honest, I may well have posed somewhere where I've found help offered in a friendly way in the past, like Perl Monks rather than here.
I appreciate that you have a high standard of what you define as being helpful. A person that holds himself to a high standard personally could be a great benefit to this forum.

But I can understand Jeffs reply also. We see many many lazy questions posted here and just like you seemed to be sensitive to his type of less than helpful reply, I can see how and why he might be sensitive to what he thinks or believes or assumes (just like you have done in regards to him) that the poster is being lazy and prefers to have others do a search when the poster could have easily done it himself. There is no end to assumption. Asking for clarification is always the better approach on a forum rather than assuming. Written words are too easily misunderstood when trying to read intentions into them that may or may not have been there.

Anyways, I do sincerely hope you stick around here as I am assuming you are going to be helpful and look forward to reading your replies to questions. If you decide not to stick around I wish you all the best.

Kevin
Feb 27 '08 #6
Thank you minowicz for your post!

I had no idea what keywords to search CPAN for this functionality.
Jul 29 '11 #7
pikato
2
hi Rajiv,
I'm not very sure but you may try out this cpan link
http://search.cpan.org/~burak/Task-L...Any/Numbers.pm

Task::Lingua::Any::Numbers

Anyway c u. May u're from cit :)
Dec 5 '11 #8
Hi,

The following two function return the ascii value.I hope this one is useful for you........

$char=chr(48);
print"\n char= $char\n";
$num=ord('1');
print"\n Number= $num\n";
Dec 29 '11 #9
As a "training project", I set myself the task of converting dollar amounts into thealpha string commonly found on checks. The easiest way that I found was a series of hashes in the form:

%small_nums = {1 => ONE, 2 => TWO.... etc.

One hash for 0-9, one for the "teens" and one for the "tens" (TWENTY, THIRTY etc.)

Then just SPLIT the number you are converting and index reference the hashes.

Hope this helps.
Mar 23 '12 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: jerry.ranch | last post by:
I have a need to convert simple dates (i.e. 02/14/2005) to a number, do some math, and convert back to a date. (in a simple query). The math involves adding or substracting days, and days of the...
2
by: Christopher Beltran | last post by:
I am currently trying to replace certain strings, not single characters, with other strings inside a word document which is then sent to a browser as a binary file. Right now, I read in the word...
6
by: ~toki | last post by:
I'm triyng to use this function int result = NativeMethods.midiOutGetDevCaps( -1, ref pSI, (uint)Marshal.SizeOf(pSI) ); Docs say that pSI is a struct (below) typedef struct { WORD wMid;...
2
by: Michael Meckelein | last post by:
Hi all! I have a table like Table myTable = new Table(); Now, I want to publish the table as part of a webpage and as part of a word document. I tried to convert the table, but the compiler...
3
by: Jeff Mason | last post by:
Hi, I am looking for a software component that will allow me to convert a MS Word doc file to PDF from within my application. I'm using VB.NET and I'm currently doing the conversion...
2
by: Jeff Mason | last post by:
Hi, I am looking for a software component that will allow me to convert a MS Word doc file to PDF from within my application. I'm using VB.NET and I'm currently doing the conversion...
2
by: Tom Grove | last post by:
I have a server program that I am writing an interface to and it returns data in a perl dictionary. Is there a nice way to convert this to something useful in Python? Here is some sample data:...
9
by: dotnetguru | last post by:
Hi SMART GUYS, Please help me write a query. Actually I want to convert my rows into columns. Can anyone kindly give me the query to do it? My rows are about employees. There can be any number of...
6
by: Justin | last post by:
Hi all, i need some help over here... i found the solution to export file from mysql db into *.csv. but is there anyway to convert the contents into *.doc and save in my webserver and providing a...
1
by: okonita | last post by:
Hi all, I have a T-SQL FUNCTION that I am trying to convert to DB2 SQL function. I ran the code through IBM migration Tool but was unable to get a clean conversion. So okay, I ran the code...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.