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


precision,setPrecision!


Usage

precision x
setPrecision!(x, n)


Signatures

precision: % $\to$ MachineInteger
setPrecision!: (%, MachineInteger) $\to$ %


Parameter Type Description
x % a float
n MachineInteger a precision


Description

precision(x) returns the precision acutally used for $x$, while setPrecision!(x, n) sets the precision for $x$ to be at least $n$ bits.


Remarks

Those functions are wrapper to the mpf_get_prec and mpf_set_prec GMP functions, so setPrecision! can involve a call to realloc.


See Also

defaultPrecision,setDefaultPrecision



Manuel Bronstein 2004-06-28