Numerical data types
Guile supports a rich “tower” of numerical types — integer, rational, real and complex — and provides an extensive set of mathematical and scientific functions for operating on numerical data. This section of the manual documents those types and functions.
You may also find it illuminating to read R5RS’s presentation of numbers in Scheme, which is particularly clear and accessible: see Numbers in R5RS.
- Scheme’s Numerical “Tower”
- Integers
- Real and Rational Numbers
- Complex Numbers
- Exact and Inexact Numbers
- Read Syntax for Numerical Data
- Operations on Integer Values
- Comparison Predicates
- Converting Numbers To and From Strings
- Complex Number Operations
- Arithmetic Functions
- Scientific Functions
- Bitwise Operations
- Random Number Generation