Simple Python Fixed-Point Module

SPFPM (Simple Python Fixed-Point Module) is a Python module which provides basic facilities for manipulating (binary) fixed-point numbers. The number of fractional binary digits is tunable, allowing near-arbitrary precision arithmetic. Arithmetic and mathematical functions such as sqrt, exp, log, sin, and cos are available. (Source: http://freecode.com/)