Warning: This is the manual of the legacy Guile 2.2 series. You may want to read the manual of the current stable series instead.
Next: Characters, Previous: Booleans, Up: Data Types [Contents][Index]
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.
• Numerical Tower: | Scheme’s numerical "tower". | |
• Integers: | Whole numbers. | |
• Reals and Rationals: | Real and rational numbers. | |
• Complex Numbers: | Complex numbers. | |
• Exactness: | Exactness and inexactness. | |
• Number Syntax: | Read syntax for numerical data. | |
• Integer Operations: | Operations on integer values. | |
• Comparison: | Comparison predicates. | |
• Conversion: | Converting numbers to and from strings. | |
• Complex: | Complex number operations. | |
• Arithmetic: | Arithmetic functions. | |
• Scientific: | Scientific functions. | |
• Bitwise Operations: | Logical AND, OR, NOT, and so on. | |
• Random: | Random number generation. |