uncloud-mravi/uncloud_pay/__init__.py

9 lines
171 B
Python
Raw Normal View History

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