'Convert SymPy\'s number to ``dtype``.'

def from_sympy(self, expr):

    number = expr.evalf(n=self.dps)
    if number.is_Number:
        return self.dtype(number)
    else:
        raise CoercionFailed(('expected    real    number,    got    %s' % expr))
