I need to convert one
into 1
, two
into 2
and so on.
Is there a way to do this with a library or a class or anything?
I need to convert one
into 1
, two
into 2
and so on.
Is there a way to do this with a library or a class or anything?
Here's the trivial case approach:
Or are you looking for something that can handle "twelve thousand, one hundred seventy-two"?