def as_si(x, ndp):
    """ Convert humber to latex-style x10 scientific notation string"""
    s = '{x:0.{ndp:d}e}'.format(x=x, ndp=ndp)
    m, e = s.split('e')
    return r'{m:s}\times 10^{{{e:d}}}'.format(m=m, e=int(e))