import math


def FormatToStandardForm(val):
    """ Format val as a string in standard form. """

    power = math.floor(
        math.log10(val)
        )

    val = val / (10 ** power)

    if val == 1.0:
        return r"10$^{{{0:.0f}}}$".format(power)
    else:
        return r"{0:.1f} $\times$ 10$^{{{1:.0f}}}$".format(val, power)