I have this string below. It has no spaces.
"3.2+.4*5.67/6.145="
I would like for there to be spaces and to keep the floats intact. I'd also like to iterate over it to add elements to a string or a stack (eventual goal is to convert to postfix). So, I think this is the output that I need:
[3.2, +, .4, *, 5.67, /, 6.145, =]
Any ideas on how to do this?
The postfix output should eventually be this:
"3.2 .4 5.67 * 6.145 / +"