(guile.info.gz) Integer Data
Info Catalog
(guile.info.gz) Immediate Datatypes
(guile.info.gz) Character Data
18.2.4.1 Integers
.................
Here are functions for operating on small integers, that fit within an
`SCM'. Such integers are called "immediate numbers", or "INUMs". In
general, INUMs occupy all but two bits of an `SCM'.
Bignums and floating-point numbers are non-immediate objects, and
have their own, separate accessors. The functions here will not work on
them. This is not as much of a problem as you might think, however,
because the system never constructs bignums that could fit in an INUM,
and never uses floating point values for exact integers.
-- Macro: int SCM_INUMP (SCM X)
Return non-zero iff X is a small integer value.
-- Macro: int SCM_NINUMP (SCM X)
The complement of SCM_INUMP.
-- Macro: int SCM_INUM (SCM X)
Return the value of X as an ordinary, C integer. If X is not an
INUM, the result is undefined.
-- Macro: SCM SCM_MAKINUM (int I)
Given a C integer I, return its representation as an `SCM'. This
function does not check for overflow.
Info Catalog
(guile.info.gz) Immediate Datatypes
(guile.info.gz) Character Data
automatically generated byinfo2html