(self, mantissa, exp10)
return self._normalise(*den)
Set value to mantissa and decimal exponent.
Set value to mantissa and decimal exponent.
Set value to mantissa and decimal exponent .
def from_decimal(self, mantissa, exp10):
        """Set value to mantissa and decimal exponent."""
        den = self.from_int(mantissa)._denormalise()
        # apply decimal exponent
        while (exp10 < 0):
            den = self._div10_den(den)
            exp10 += 1
        while (exp10 > 0):
            den = self._mul10_den(den)
            exp10 -= 1
        return self._normalise(*den)
def from_decimal ( self , mantissa , exp10 ) : den = self . from_int ( mantissa ) . _denormalise ( ) # apply decimal exponent while ( exp10 < 0 ) : den = self . _div10_den ( den ) exp10 += 1 while ( exp10 > 0 ) : den = self . _mul10_den ( den ) exp10 -= 1 return self . _normalise ( * den )