Scheme Programmer's Manual
NAME
fx+, fx* - fixnum addition and multiplication
LIBRARY
(import (rnrs)) ;R6RS
(import (rnrs arithmetic fixnums)) ;R6RS
SYNOPSIS
(fx+ fx1 fx2)
(fx* fx1 fx2)
DESCRIPTION
These procedures return the sum or product of
their arguments, provided that sum or product
is a fixnum.
RETURN VALUES
The sum or product of the arguments.
EXAMPLES
(fx+ 2 3) => 5
(fx* 2 3) => 6
(fx+ (greatest-fixnum) 1) => &implementation-restriction exception
(fx* (least-fixnum) -1) => &implementation-restriction exception
ERRORS
This procedure can raise exceptions with the following condition types:
- &implementation-restriction
-
Raised when the sum or product is not a fixnum.
- &assertion
-
Raised when an argument is not a fixnum.
STANDARDS
R6RS
SEE ALSO
fixnums(7)
AUTHORS
This page is part of the
scheme-manpages
project.
It includes materials from the RnRS documents.
More information can be found at
Index
- NAME
-
- LIBRARY
-
- SYNOPSIS
-
- DESCRIPTION
-
- RETURN VALUES
-
- EXAMPLES
-
- ERRORS
-
- STANDARDS
-
- SEE ALSO
-
- AUTHORS
-
Return to Main Contents