Create a new Decimal instance from num, using self as the context. Unlike the Decimal constructor, this function observes the context limits.
>>> Context(prec=5, rounding=ROUND_DOWN).create_decimal('1.2345678') Decimal('1.2345')
decimal/Context.create_decimal
Context.create_decimal