User Tools

A PCRE internal error occured. This might be caused by a faulty plugin

====== Function ZEROP ====== ====Syntax==== * **zerop** //number// → //generalized-boolean// ====Arguments and Values==== * //number// - a //[[CL:Glossary:number]]//. * //generalized-boolean// - a //[[CL:Glossary:generalized boolean]]//. ====Description==== Returns //[[CL:Glossary:true]]// if //number// is zero (//[[CL:Glossary:integer]]//, //[[CL:Glossary:float]]//, or //[[CL:Glossary:complex]]//); otherwise, returns //[[CL:Glossary:false]]//. Regardless of whether an //[[CL:Glossary:implementation]]// provides distinct representations for positive and negative floating-point zeros, ''(zerop -0.0)'' always returns //[[CL:Glossary:true]]//. ====Examples==== <blockquote> (zerop 0) → //[[CL:Glossary:true]]// (zerop 1) → //[[CL:Glossary:false]]// (zerop -0.0) → //[[CL:Glossary:true]]// (zerop 0/100) → //[[CL:Glossary:true]]// (zerop #c(0 0.0)) → //[[CL:Glossary:true]]// </blockquote> ====Side Effects==== None. ====Affected By==== None. ====Exceptional Situations==== Should signal an error of type type-error if //number// is not a //[[CL:Glossary:number]]//. ====See Also==== None. ====Notes==== <blockquote> (zerop //number//) ≡ ([[CL:Functions:math-equal|=]] //number// 0) </blockquote>