Next / Previous / Contents / Shipman's homepage

27.6. FoDim.__div__()

Division by a constant.

fosox.py
# - - -   F o D i m . _ _ d i v _ _

    def __div__ ( self, other ):
        '''Divide self by a constant.
        '''
        return FoDim ( self.n / Decimal(other), self.units )