Mercurial > hg > xemacs-beta
comparison man/lispref/numbers.texi @ 2091:0221e454fe63
[xemacs-hg @ 2004-05-21 03:27:55 by stephent]
typo fix <87smdubgu5.fsf_-_@tleepslib.sk.tsukuba.ac.jp>
author | stephent |
---|---|
date | Fri, 21 May 2004 03:27:58 +0000 |
parents | e52c5a5c6a7d |
children | c91543697b09 |
comparison
equal
deleted
inserted
replaced
2090:e52c5a5c6a7d | 2091:0221e454fe63 |
---|---|
668 @end defun | 668 @end defun |
669 | 669 |
670 @defun bigfloatp object | 670 @defun bigfloatp object |
671 @cindex floats | 671 @cindex floats |
672 The @code{bigfloatp} predicate tests to see whether @var{object} is an | 672 The @code{bigfloatp} predicate tests to see whether @var{object} is an |
673 integer represented as a fixnum, and returns @code{t} if so, @code{nil} | 673 floating point number represented as a bigfloat, and returns @code{t} if |
674 otherwise. | 674 so, @code{nil} otherwise. |
675 @end defun | 675 @end defun |
676 | 676 |
677 | 677 |
678 @node Comparison of Numbers | 678 @node Comparison of Numbers |
679 @section Comparison of Numbers | 679 @section Comparison of Numbers |
704 will be if it is a number, then the predicate @code{eql} can be used for | 704 will be if it is a number, then the predicate @code{eql} can be used for |
705 comparison without signaling an error on some expected return values. | 705 comparison without signaling an error on some expected return values. |
706 Because of canonicalization, @code{eql} can be used to compare a fixnum | 706 Because of canonicalization, @code{eql} can be used to compare a fixnum |
707 value to something that might be a ratio; if the potential ratio value | 707 value to something that might be a ratio; if the potential ratio value |
708 is representable as a fixnum, it will be canonicalized to fixnum before | 708 is representable as a fixnum, it will be canonicalized to fixnum before |
709 comparing. | 709 comparing. However, although floats and bigfloats are of different |
710 types for the purpose of comparisons via @code{eql}, two bigfloats of | |
711 different @emph{precision} that are @code{=} will always be @code{eql}. | |
710 | 712 |
711 @example | 713 @example |
712 (eql 2 (string-match "ere" "there")) | 714 (eql 2 (string-match "ere" "there")) |
713 @result{} t | 715 @result{} t |
714 | 716 |