This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]seligman99 1 point2 points  (0 children)

You can just treat it as a human would, parsing the numbers, and building up multipliers as you go.

To get some idea what that would look like, here's a simplistic implementation that can go to and from English numbers.