# Tag Info

Accepted

### Create the English word for a number

There's an easier way. We have the num2words module which can be easily installed via pip: ...
• 9,146

### Converting numbers to words - Python

This is good work! Well done as a beginner programmer. def changeNumberIntoLetter(value): number=numToLetter(value) return number This function doesn't ...
• 4,531

### Converting a large number into something like: 4 Novemnongent

I'll put my comments inline. suffixes = ["", "Thousand", "Million", "Billion", "Trillion", "Quadrillion", ... This line is way too long. The standard for Python ...
• 8,442
Accepted

### Number to English word converter

Switched Let's start with the obvious things we can improve. A return statement terminates the current function. Therefore, all your ...
• 19.2k

### Japanese reading of an integer

Your magnitudes should be chou and kei (as in the supercomputer, as an aside). Also, ...
• 247
Accepted

• 1,866

...
• 2,789

### Create the English word for a number

You have quite a big bug there. In this part: ...
• 2,805

### Project Euler 17: counting letters needed to write numbers

You don't quite seem to have realized this, but... "One hundred and ..." means that what you can do is, for a 3 digit number - count the hundreds, as "One hundred" and "Two hundred", and then append ...
• 22.3k

### Integers to English words in C

Keep your line-length under control. Horizontal scrolling is death on readability. strprep() is extremely inefficient, and even assuming the destination is big ...
• 19.1k

### Project Euler 17: counting letters needed to write numbers

Simple optimisation At the moment, all your code relies on String : you retrieve Strings, you concatenate them and ultimately, you check the length. An easier solution would be to keep your arrays : ...
• 29.2k

### Number in words: recursive function

Nice use of """docstrings""". This code is useless: else: "Value out of bounds" If the else clause is reached, the ...
• 33.4k

### Converting int values in Java to human readable strings in English

For the input -2147483648, your program outputs just minus . Also, you never handle 0 ...
• 144k
Accepted

### Convert time 24hr format into time as words

Output quality $scala time.TimeAsWords 00:01 One minute past twelve before midday.$ scala time.TimeAsWords 11:58 Two minutes to twelve before midday. I would ...
• 144k

### Japanese reading of an integer

I think it would be better to generate the 漢字 versions of the numbers, as it's more useful in general. Make a separate class responsible for romanization (or phonetic conversion in general so it can ...
• 1,799
Accepted

### Japanese reading of an integer

The push function may invoke undefined behavior. When you create a new std::string, I don't think it is guaranteed to be null-...
• 21.3k

### Converting a large number into something like: 4 Novemnongent

This approach is based on len(input()). As @Snowbody pointed out, we must be sure that it works even if the user inputs any leading whitespace, sign, base ...
• 233
Accepted

### Integers to English words in C

Design Your function fails to write a NUL terminator at the end of the output. That means that the caller must zero the entire buffer before calling the function (or else use a ...
• 144k

### Japanese reading of an integer

I know in that in English that each word would be separate where the program is printing the all of the numbers merged together. Is this the actual functionality in Japanese? Since the code might be ...
• 23.8k
Accepted

### Converting numbers to text

The "professional" approach would be using libraries that already exist. As agtoever mentioned, there's num2words. So you can do things like: ...
• 13.3k

### Number to English word converter

Overall your solution is straightforward and clear. A few areas might be improved including consistency of formatting, enabling and addressing compiler warnings, considering brevity/efficiency/...
• 484

### Converting numbers to words - Python

I did this by inflect pypi library: ...
Accepted

### Converting int values in Java to human readable strings in English

I'm not keen on the class name or method names - see my alternatives below. I find perhaps a little more logic in the code than I'd look for - normally I try to find some way of making this sort of ...
• 1,532
Accepted

### Number to word converter (1 to 99 inclusive)

The code is broken. If a number is greater than 20 and ends with 0, print1to20(num_b) will not do what it should. Don't mix the logic with the output. I'd change ...
• 5,580
Accepted

### Measuring the length of binary numbers in English words in C

Optimization, step by step I ran your program and it took 38.5 seconds to run on my computer. After playing around with it for a bit, I was able to speed it up by 100x. I went through three ...
• 28.5k
Accepted

### Converting numbers to words in Haskell

Pattern matching or list element selection? It's possible to reduce the size of ones, tens, ...
• 19.2k

### Number to Text converter in Haskell

I think the primary issue with your current implementation is that it's attempting to do math on strings. For example, ...
• 151

### Converting int values in Java to human readable strings in English

Naming class IntToHumanReadableStringConverter { I would consider "123" to be a human readable string of an int. ...
• 21.5k