Next / Previous / Contents / Shipman's homepage

9. Imports
# - - - - -   I m p o r t s

Arithmetic in the FoDim class is done using Python's standard Decimal module, which implements fixed-point arithmetic. We'll limit the precision to ten decimal places, which should be adequate for print layout.
from decimal import Decimal, getcontext
getcontext().prec = 10

All XML generation is done using the sox module.
import sox