Scientific notation for any number NOT for axes

Which TLatex method would solve this? I’ve looked, but I don’t see how to do it.

Would you please reply with a snippet that can be paste into an interactive session that would print 12345678, as 1.23x10^7 to a TCanvas.

Thanks!