Write out numbers in words ( range [0-9999] ) with British spelling rules. For example;
- 1 > one
- 56 > fifty-six
- 100 > one hundred
- 105 > one hundred and five
- 245 > two hundred and forty-five
- 1520 > one thousand, five hundred and twenty
- 9999 > nine thousand, nine hundred and ninety-nine (maximum)
Solution Stats
Problem Comments
3 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers12
Suggested Problems
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
1993 Solvers
-
519 Solvers
-
Find a subset that divides the vector into equal halves
401 Solvers
-
Create a matrix X, where each column is a shifted copy of the vector v
222 Solvers
-
Square Digits Number Chain Terminal Value (Inspired by Project Euler Problem 92)
256 Solvers
More from this Author92
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Nice problem --- it could use a few more test cases though, especially corner cases like 1000, 1001, 1010 and so on.
Test cases have been added to the problem.
Thanks, Dyuman!