If the operands have different scaling factors, then they must be converted to a common scaling factor before the operation. Round away from zero if last digit after rounding towards zero would have been 0 or 5; otherwise round towards zero. Less conveniently, Decimals can also be created from tuples containing a sign flag 0 for positive, 1 for negative , a tuple of digits, and an integer exponent. Comparing for equality with NaN always returns False and comparing for inequality always returns true. And, in many applications, data is converted to Decimal with a single cast inside a loop.
nest...