Common Lisp: Numbers
In SBCL the floating point modes can be inspected:
For arbitrary high precision calculations there is the computable-reals library on QuickLisp:
The precision to print is set by , by default 20
There are 5 types of complex number: The real and imaginary parts must be of the same type, and can be rational, or one of the floating point types (short, single, double or long). There is a difference between and for negative numbers:
Similar functions , , and return the result as floating point, of the same type as their argument:
The predicate returns if all arguments are numerically equal. The function generates either integer or floating point random numbers, depending on the type of its argument.
Source: lispcookbook.github.io