User Tools


Differences

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

Link to this comparison view

cl:functions:math-add [2019/07/14 17:00]
cl:functions:math-add [2019/09/18 01:00] (current)
Line 1: Line 1:
 +====== Function + ======
 +
 +====Syntax====
 +  * **+** //''&​rest''​ numbers// → //sum//
 +
 +====Arguments and Values====
 +  * //number// - a //​[[CL:​Glossary:​number]]//​.
 +  * //sum// - a //​[[CL:​Glossary:​number]]//​.
 +
 +====Description====
 +Returns the sum of //​numbers//,​ performing any necessary type conversions in the process. If no //numbers// are supplied, ''​0''​ is returned.
 +
 +====Examples==== ​
 +<​blockquote> ​
 +(+) <r>0 </r>
 +(+ 1) <r>1 </r>
 +(+ 31/100 69/100) <r>1 </r>
 +(+ 1/5 0.8) <​r>​1.0 </r>
 +</​blockquote>​
 +
 +====Affected By====
 +None.
 +
 +====Exceptional Situations====
 +Might signal **[[CL:​Types:​type-error]]** if some //​[[CL:​Glossary:​argument]]//​ is not a //​[[CL:​Glossary:​number]]//​. Might signal **[[CL:​Types:​arithmetic-error]]**.
 +
 +====See Also====
 +  * {\secref\NumericOperations}
 +  * {\secref\RationalComputations}
 +  * {\secref\FloatingPointComputations}
 +  * {\secref\ComplexComputations}
 +
 +====Notes====
 +None.
 +