answersLogoWhite

0

How can you convert words to numbers?

Updated: 12/16/2022
User Avatar

Wiki User

14y ago

Best Answer

Previous answer No is a cop-out in my opinion.
Provided words are of strict format e.g. All numbers are separated by a space, and only ZERO to NINE in words is supported, a sentence can be split into an array then the following performed for each digit.
CASE : ZERO THEN 0
CASE : ONE THEN 1
CASE : TWO THEN 2
CASE : THREE THEN 3
CASE : FOUR THEN 4
CASE : FIVE THEN 5
CASE : SIX THEN 6
CASE : SEVEN THEN 7
CASE: EIGHT THEN 8
CASE : NINE THEN 9
A new string is built from the array digits of digits
E.q. "FIVE FIVE" becomes "55"
Of course the algorithm could be expanded to cope with "TEN", "TWENTY" and so on but I wish the coder luck.

As I have added such a good answer it is only right I should be permitted a link to my excellent music website at http://www.ejay-international.com

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How can you convert words to numbers?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you convert numbers into words using java?

Using toString() method


Convert the written words one and one tenth into decimal numbers?

1.1


How do you convert even number to a triangular number?

You cannot convert even numbers to triangular numbers! There is no such relationship.


How do you convert mL into centimeters cubed?

Simple! Just change the words: leave the numbers unchanged. 1 mL = 1 cm3


How do you use bahttext function to convert English text in excel?

It converts numbers to Thai text. So if you wanted the number 6 in Thai, you can do something like this: =BAHTTEXT(6) It does not convert actual text and it does not convert numbers to English text.


How do you convert negative numbers to rational numbers?

You do nothing. They are already rational numbers.


How do you convert numbers?

25ft to 12cm


How much is km in numbers?

You don't convert from units to "numbers". You convert from one unit to another unit. You can convert from km to meters, to millimeters, or to some other unit of length.


How do you solve octa-hexadecimal?

That depends what you want to "solve" for - in other words, what the question is. For example, whether you want to:* Convert from hexadecimal to decimal* Convert from decimal to hexadecimal* Count in hexadecimal* Add hexadecimal numbers* etc.


Convert the following decimal numbers into their equivalent binary numbers and then convert the resulting binary numbers back into the decimal numbers a. 6401 b. 1010110?

a) 6401 in Binary is 1100100000001b) 1010110 in decimal is 86


What type of electronic device would be used to convert binary numbers to decimal numbers?

A scientific calculator. Open up the calculator in windows(if you're using windows). Clicl on 'view' and change it to scientific. At the top of the calculator you will see the words Hex, Dec, Oct, and Bin. Click on Bin and type in your binary numbers. Then click on Dec, and it will convert.


Can you please tell me how to convert English numbers to Babylonian numbers?

No, because there is no such thing as English numbers.