next up previous contents index
Next: GMPFloat Up: FloatType Previous: coerce   Contents   Index


fraction,truncate


Usage

fraction x
truncate x


Signatures

fraction: % $\to$ %
truncate: % $\to$ AldorInteger


Parameter Type Description
x % a float


Returns

truncate($x$) returns $n$ such that $n x \ge 0$ and $\vert n\vert \le \vert x\vert < \vert n\vert + 1$, while fraction($x$) returns $x - \mbox{truncate}(x)$.



Manuel Bronstein 2004-06-28