aspose file tools*
The moose likes Java in General and the fly likes Converting words to numbers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Converting words to numbers" Watch "Converting words to numbers" New topic
Author

Converting words to numbers

Adrian Tan
Greenhorn

Joined: May 27, 2010
Posts: 1
Hi!

I'm just wonderng how you'll convert words into numbers..

i.e. ten -> 10
one thousand ten -> 1010

or is there an available library that do this?

thanks.
Dawn Charangat
Ranch Hand

Joined: Apr 26, 2007
Posts: 249
Not sure you can find one readily available for Java, though it is not that tough to do it yourself... if you are looking only for the logic involved, may be this can help... It is VBA, by the way.

http://support.microsoft.com/kb/213360
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

Dawn Charangat wrote:Not sure you can find one readily available for Java, though it is not that tough to do it yourself... if you are looking only for the logic involved, may be this can help... It is VBA, by the way.

http://support.microsoft.com/kb/213360

Adrian wants to do the opposite. Convert English strings to numbers, not numbers to English strings.


[My Blog]
All roads lead to JavaRanch
Dawn Charangat
Ranch Hand

Joined: Apr 26, 2007
Posts: 249
Oops... my bad... Thanks for that Christopher..

Sorry Adrian... not sure if I know the answer to that question. I will keep looking though.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Converting words to numbers