exact?
-- r7rs
Definition type-predicate
;
Procedure variants:
((exact-number) -> (true))
exact-number
;true
;((inexact-number) -> (false))
inexact-number
;false
;((number) -> (false))
scheme:base
-- (scheme base)
;scheme
-- (scheme)
;(exact? z) (inexact? z)
These numerical predicates provide tests for the exactness of a quantity. For any Scheme number, precisely one of these predicates is true.
(exact? 3.0) ===> #f (exact? #e3.0) ===> #t (inexact? 3.) ===> #t
The text herein was sourced and adapted as described in the "R7RS attribution of various text snippets" appendix.