is there a way to parse a double in reverse?
I' need to convert a double to a string as a monetary value
ex. 567.12 becomes Five Hundred Sixty Seven and 12/100
I'm thinking I can create a looping switch statement that takes each individual value and adds it to the beginning of a string
ex.
switch (2) -> 2/100
loop
switch (1) -> 12/100
loop
switch (7) -> Seven and 12/100
etc...
If I'm completely off base with this please feel free to tell me. (I suspect there is a much easier way but I have no idea what it is)
Last edited on