Next / Previous / Contents / Shipman's homepage

9. Imports

fosox.py
# - - - - -   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.

fosox.py
from decimal import Decimal, getcontext
getcontext().prec = 10

All XML generation is done using the sox module.

fosox.py
import sox