next up previous contents index
Next: new Up: GMPInteger Previous: coerce   Contents   Index


limbs


Usage

for d in limbs n repeat { ...}


Signature

limbs: % $\to$ Generator MachineInteger


Parameter Type Description
n % an integer


Description

This function allows the individual limbs of a GMP integer to be iterated independently of the machine size. This generator yields the limbs from the least to the most significant.


Remarks

The limbs of $n$ describe $\vert n\vert$, so combine it with sign if you need a complete description of $n$.



Manuel Bronstein 2004-06-28