I am making an iOS calculator app in which the scientific notion is enabled by using
Label.text = [NSString stringWithFormat:@"%g",savedValue];
Its format is e.g. 1.09101e+120. Since I have enough display space I would like to make it more logical and display it as 1.09101×10120.
How can this be achieved?
You will probably need another label. You need to split your string in two parts (search for e+). Extract the number and put it in the other label. And you have to do the layout on your own.
Even easier, if Helvetica or any other Font on the iPhone supports these characters:
⁰¹²³⁴⁵⁶⁷⁸⁹(as mentioned by Marcelo), you can just use them. But still you have to build your own custom string by replacing the e+ with x10 and the 120 with the mentioned characters.