+

Allegro CL
Home Previous Up Next Table of Contents Index
ANSI Common Lisp 12 Numbers 12.2 Dictionary of Numbers

12.2.25 + Function

Syntax:
+ &rest numbers sum

Arguments and Values:
number - a number.

sum - a number.

Description:
Returns the sum of numbers, performing any necessary type conversions in the process. If no numbers are supplied, 0 is returned.

Examples:
 (+) 0
 (+ 1) 1
 (+ 31/100 69/100) 1
 (+ 1/5 0.8) 1.0

Exceptional Situations:
Might signal type-error if some argument is not a number. Might signal arithmetic-error.

See Also:
Section 12.1.1 Numeric Operations, Section 12.1.3 Rational Computations, Section 12.1.4 Floating-point Computations, Section 12.1.5 Complex Computations

Allegro CL Implementation Details:
None.

Home Previous Up Next Table of Contents Index
© Franz Inc. All Rights Reserved - File last updated 2022年07月25日

AltStyle によって変換されたページ (->オリジナル) /