diff options
Diffstat (limited to 'doc/ref/api-data.texi')
-rwxr-xr-x | doc/ref/api-data.texi | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/ref/api-data.texi b/doc/ref/api-data.texi index 4835f3028..fc253b046 100755 --- a/doc/ref/api-data.texi +++ b/doc/ref/api-data.texi @@ -549,7 +549,8 @@ While @samp{+nan.0} is not @code{=} to itself, it is @code{eqv?} to itself. To test for the special values, use the functions @code{inf?} and -@code{nan?}. +@code{nan?}. To test for numbers than are neither infinite nor a NaN, +use @code{finite?}. @deffn {Scheme Procedure} real? obj @deffnx {C Function} scm_real_p (obj) @@ -597,6 +598,12 @@ Return @code{#t} if @var{x} is either @samp{+inf.0} or @samp{-inf.0}, Return @code{#t} if @var{x} is @samp{+nan.0}, @code{#f} otherwise. @end deffn +@deffn {Scheme Procedure} finite? x +@deffnx {C Function} scm_finite_p (x) +Return @code{#t} if @var{x} is neither infinite nor a NaN, +@code{#f} otherwise. +@end deffn + @deffn {Scheme Procedure} nan @deffnx {C Function} scm_nan () Return NaN. |