| Allegro CL version 10.0 Unrevised from 9.0 to 10.0. 9.0 version |
Arguments: object
Returns true if the argument is a ratio and returns nil
otherwise. Note that an integer (a fixnum or a
bignum) is not a ratio but is a rational. Integers and ratios
partition rationals.
cl-user(7): (ratiop 1) ;; fixnums are not ratios nil cl-user(8): (ratiop 1/2) t cl-user(9): (ratiop 2/1) ;; Actually the fixnum 2, despite how it ;; is represented nil cl-user(10): (ratiop 0.5) ;; floats are not ratios nil cl-user(11): (ratiop nil) ;; returns NIL for non-numbers (does not error) nil cl-user(12):
See also fixnump, single-float-p, double-float-p, and rationalp.
Copyright (c) 1998-2019, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 9.0 page.
Created 2015.5.21.
| Allegro CL version 10.0 Unrevised from 9.0 to 10.0. 9.0 version |