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+ (greatestfixnum) 1) => &implementationrestriction exception
(fx* (leastfixnum) 1) => &implementationrestriction exception
ERRORS
This procedure can raise exceptions with the following condition types:
 &implementationrestriction

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
schememanpages
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