8 lines
171 B
Python
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
|