User Tools


Differences

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

Link to this comparison view

cl:functions:minusp [2019/06/15 02:00]
cl:functions:minusp [2019/08/17 15:00] (current)
Line 1: Line 1:
 +====== Function MINUSP, PLUSP ======
 +
 +====Syntax====
 +  * **minusp** //real// → //​generalized-boolean//​
 +  * **plusp** //real// → //​generalized-boolean//​
 +
 +====Arguments and Values====
 +  * //real// - a //​[[CL:​Glossary:​real]]//​.
 +  * //​generalized-boolean//​ - a //​[[CL:​Glossary:​generalized boolean]]//​.
 +
 +====Description====
 +**minusp** returns //​[[CL:​Glossary:​true]]//​ if //real// is less than zero; otherwise, returns //​[[CL:​Glossary:​false]]//​.
 +
 +**plusp** ​ returns //​[[CL:​Glossary:​true[[CL:​Functions:​true]]]]//​ if //real// is greater than zero; otherwise, returns //​[[CL:​Glossary:​false]]//​.
 +
 +Regardless of whether an //​[[CL:​Glossary:​implementation]]//​ provides distinct representations for positive and negative //​[[CL:​Glossary:​float]]//​ zeros, ''​(minusp -0.0)''​ always returns //​[[CL:​Glossary:​false]]//​.
 +
 +====Examples====
 +<​blockquote>​
 +(minusp -1) → //​[[CL:​Glossary:​true]]// ​
 +(plusp 0) → //​[[CL:​Glossary:​false]]// ​
 +(plusp [[CL:​Constant Variables:​least-positive-single-float]]) → //​[[CL:​Glossary:​true]]// ​
 +</​blockquote>​
 +
 +====Side Effects====
 +None.
 +
 +====Affected By====
 +None.
 +
 +====Exceptional Situations====
 +Should signal an error of type type-error if //real// is not a //​[[CL:​Glossary:​real]]//​.
 +
 +====See Also====
 +None.
 +
 +====Notes====
 +None.
 +