'Return string for non-decade locations'

def _non_decade_format(self, sign_string, base, fx, usetex):

    b = float(base)
    exponent = math.floor(fx)
    coeff = ((b ** fx) / (b ** exponent))
    if is_close_to_int(coeff):
        coeff = nearest_long(coeff)
    if usetex:
        return (u'$%s%g\\times%s^{%d}$' % (sign_string, coeff, base, exponent))
    else:
        return (u'$%s$' % _mathdefault((u'%s%g\\times%s^{%d}' % (sign_string, coeff, base, exponent))))
