1336 |
|
|
1337 |
SCM_DEFINE (scm_integer_length, "integer-length", 1, 0, 0, |
SCM_DEFINE (scm_integer_length, "integer-length", 1, 0, 0, |
1338 |
(SCM n), |
(SCM n), |
1339 |
"Return the number of bits neccessary to represent @var{n}.\n" |
"Return the number of bits necessary to represent @var{n}.\n" |
1340 |
"\n" |
"\n" |
1341 |
"@lisp\n" |
"@lisp\n" |
1342 |
"(integer-length #b10101010)\n" |
"(integer-length #b10101010)\n" |
2841 |
SCM_DEFINE (scm_number_p, "complex?", 1, 0, 0, |
SCM_DEFINE (scm_number_p, "complex?", 1, 0, 0, |
2842 |
(SCM x), |
(SCM x), |
2843 |
"Return @code{#t} if @var{x} is a complex number, @code{#f}\n" |
"Return @code{#t} if @var{x} is a complex number, @code{#f}\n" |
2844 |
"else. Note that the sets of real, rational and integer\n" |
"otherwise. Note that the sets of real, rational and integer\n" |
2845 |
"values form subsets of the set of complex numbers, i. e. the\n" |
"values form subsets of the set of complex numbers, i. e. the\n" |
2846 |
"predicate will also be fulfilled if @var{x} is a real,\n" |
"predicate will also be fulfilled if @var{x} is a real,\n" |
2847 |
"rational or integer number.") |
"rational or integer number.") |
2861 |
SCM_DEFINE (scm_real_p, "rational?", 1, 0, 0, |
SCM_DEFINE (scm_real_p, "rational?", 1, 0, 0, |
2862 |
(SCM x), |
(SCM x), |
2863 |
"Return @code{#t} if @var{x} is a rational number, @code{#f}\n" |
"Return @code{#t} if @var{x} is a rational number, @code{#f}\n" |
2864 |
"else. Note that the set of integer values forms a subset of\n" |
"otherwise. Note that the set of integer values forms a subset of\n" |
2865 |
"the set of rational numbers, i. e. the predicate will also be\n" |
"the set of rational numbers, i. e. the predicate will also be\n" |
2866 |
"fulfilled if @var{x} is an integer number. Real numbers\n" |
"fulfilled if @var{x} is an integer number. Real numbers\n" |
2867 |
"will also satisfy this predicate, because of their limited\n" |
"will also satisfy this predicate, because of their limited\n" |