Previous: Fixnum Operations, Up: Fixnum and Flonum Operations
A flonum is an inexact real number that is implemented as a
floating-point number. In MIT/GNU Scheme, all inexact real numbers are
flonums. For this reason, constants such as 0.
and 2.3
are guaranteed to be flonums.
These procedures are the standard order and equality predicates on flonums. When compiled, they do not check the types of their arguments.
Each of these procedures compares its argument to zero. When compiled, they do not check the type of their argument.
These procedures are the standard arithmetic operations on flonums. When compiled, they do not check the types of their arguments.
The IEEE floating-point number specification supports three special “numbers”: positive infinity (
+inf
), negative infinity (-inf
), and not-a-number (NaN
). This predicate returns#f
if flonum is one of these objects, and#t
if it is any other floating-point number.
This procedure returns the negation of its argument. When compiled, it does not check the type of its argument. Equivalent to
(flo:- 0.
flonum)
.
These procedures are flonum versions of the corresponding procedures. When compiled, they do not check the types of their arguments.