473,322 Members | 1,431 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,322 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 10035
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...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.