Next: syslib compnums, Previous: syslib flonums, Up: syslib [Index]
The arguments rat to these operations must be ratnums, the
arguments num and den must be references to either fixnums
or bignums. The following bindings are exported by the library
(vicare system $ratnums)
. iklib numerics for more
functions acting on ratnums.
Allocate a new ratnum memory block, store num as reference to the numerator and den as reference to the denominator; return a reference to the ratnum.
The following conditions must be met, else the returned value will be invalid:
1
(that is: they cannot be simplified).
Return the reference to the numerator.
Return the reference to the denominator.
Return a flonum object representing rat as inexact number.
Return #t
if rat is, respectively, positive or negative;
otherwise return #f
.
Return #t
if rat is, respectively, non–positive or
non–negative; otherwise return #f
.