uncloud/uncloud_pay/__init__.py
2020-10-11 22:32:08 +02:00

8 lines
171 B
Python

import decimal
# Define DecimalField properties, used to represent amounts of money.
AMOUNT_MAX_DIGITS=10
AMOUNT_DECIMALS=2
decimal.getcontext().prec = AMOUNT_DECIMALS