I have a math solution that I want to show as something like "3.456 * 10^9", but I don't want the ^ symbol, I want the real deal. I have the power-number (9) separate, and they are all in strings. I can turn them into Integers, but I don't know if String can show that type of math. I am using Swift/iOS now, but this is a general question to all development really, no matter what language. What's the 'proper' way of showing this?
Should I store all 'power'-numbers' ascii-values 0-9 and print them out - loop over my power-string and match, or is there a simpler way?