Something of an overkill to transform text to numbers.
Input | Output |
---|---|
264 | 264 |
Two hundred 64 | 264 |
Two hundred and 64 | 264 |
Two hundred and sixty 4 | 264 |
Two hundred and sixty-four | 264 |
There is only support for positive integers.
Its one of my first haskell programs. I've seen one-liners that work for e.g. roman numerals so I realize theres a lot of room for improvement.
When I have time I'll work on the following improvements:
- Floating point numbers
- Negative numbers