User Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

cl:functions:rationalp [2019/09/14 05:00]
cl:functions:rationalp [2019/09/22 06:00] (current)
Line 1: Line 1:
 +====== Function RATIONALP ======
 +
 +====Syntax====
 +  * **rationalp** //object// → //​generalized-boolean//​
 +
 +====Arguments and Values====
 +  * //object// - an //​[[CL:​Glossary:​object]]//​.
 +  * //​generalized-boolean//​ - a //​[[CL:​Glossary:​generalized boolean]]//​.
 +
 +====Description====
 +
 +Returns //​[[CL:​Glossary:​true]]//​ if //object// is of //​[[CL:​Glossary:​type]]//​ **[[CL:​Types:​rational]]**;​ otherwise, returns //​[[CL:​Glossary:​false]]//​.
 +
 +====Examples====
 +<​blockquote> ​
 +(rationalp 12) <​r>//​[[CL:​Glossary:​true]]//​ </r>
 +(rationalp 6/5) <​r>//​[[CL:​Glossary:​true]]//​ </r>
 +(rationalp 1.212) <​r>//​[[CL:​Glossary:​false]]//​ </r>
 +</​blockquote>​
 +
 +====Side Effects====
 +
 +None.
 +
 +====Affected By====
 +
 +None.
 +
 +====Exceptional Situations====
 +
 +None.
 +
 +====See Also====
 +  * **[[CL:​Functions:​rational|Function RATIONAL]]**
 +
 +====Notes==== ​
 +<​blockquote> ​
 +(rationalp //object//) ≡ ([[CL:​Functions:​typep]] //object// '​[[CL:​Types:​rational]]) ​
 +</​blockquote>​
 +