def latex_float(f, precision=0.2, delimiter=r'\times'):
    """ Convert a float value into a pretty printable latex format
    makes 1.3123e-11 transformed into $1.31 x 10 ^ {-11}$

    Parameters
    ----------
    f: float
        value to convert

    precision: float, optional (default: 0.2)
        the precision will be used as the formatting: {precision}g
        default=0.2g

    delimiter: str, optional (default=r'\times')
        delimiter between the value and the exponent part
    """
    float_str = ("{0:" + str(precision) + "g}").format(f)
    if "e" in float_str:
        base, exponent = float_str.split("e")
        return (r"{0}" + delimiter + "10^{{{1}}}").format(base, int(exponent))
    else:
        return float_str