def latex_num(c):
    """Returns latex string of numbers, potentially using exponential notation."""
    cstr = '%.4g' % c
    if 'e' in cstr:
        idx = cstr.index('e')
        cstr = '%s \\times 10^{%i}' % (cstr[:idx], int(cstr[idx + 1:]))
    return cstr
