1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-10 05:50:26 +02:00

docs for scm_to_mpz and scm_from_mpz.

This commit is contained in:
Marius Vollmer 2004-09-21 00:43:34 +00:00
parent cd0362604b
commit 0896292232

View file

@ -468,6 +468,19 @@ These functions will always succeed and will always return an exact
number.
@end deftypefn
@deftypefn {C Function} void scm_to_mpz (SCM val, mpz_t rop)
Assign @var{val} to the multiple precision integer @var{rop}.
@var{val} must be an exact integer, otherwise an error will be
signalled. @var{rop} must have been initialized with @code{mpz_init}
before this function is called. When @var{rop} is no longer needed
the occupied space must be freed with @code{mpz_clear}.
@xref{Initializing Integers,,, gmp, GNU MP Manual}, for details.
@end deftypefn
@deftypefn {C Function} SCM scm_from_mpz_t (mpz_t val)
Return the @code{SCM} value that represents @var{val}.
@end deftypefn
@node Reals and Rationals
@subsubsection Real and Rational Numbers
@tpindex Real numbers