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
Ten thousand, nine hundred, ninety
All of the Java number classes have a parse[type] method, like parseInt() in Integer or parseDouble() in Double that convert Strings to primitive numbers. String s = getInput(); int var = Integer.parseInt(s);
Numbers, pictures and words
k n o w ? First convert it to ASCII code ... 107 110 111 119 (all decimal numbers) Then convert to binary : 1101011 1101110 1101111 1110111
18
Using toString() method
1.1
You cannot convert even numbers to triangular numbers! There is no such relationship.
Simple! Just change the words: leave the numbers unchanged. 1 mL = 1 cm3
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.
You do nothing. They are already rational numbers.
25ft to 12cm
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.
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.
a) 6401 in Binary is 1100100000001b) 1010110 in decimal is 86
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.
No, because there is no such thing as English numbers.