On the plus side, it offers a form of “decimal literal” (which has been requested many times) for free:
from decimal import Decimal as D
dec_num = D"2.71828"
On the plus side, it offers a form of “decimal literal” (which has been requested many times) for free:
from decimal import Decimal as D
dec_num = D"2.71828"