Next: for
Up: MacAnova Help File
Previous: files
Contents
Usage:
floor(x), x REAL or a structure with REAL components
|
Keywords:
transformations
floor(x) rounds the elements of the REAL variable x to the next integer
in the negative direction, producing a vector, matrix, or array with the
same shape as x.
Example:
Cmd> floor(vector(3.1416, -3.1416, 12))
(1) 3 -4 12
When x > 4503599627370495 or x < -4503599627370495, floor(x) is set to
MISSING because of the impossibility of exact representation of integers
beyond these limits. These limits may be different on some computers.
If x is a structure, so is floor(x). If xi is the i-th component of x,
the i-th component of floor(x) is floor(xi).
See also topics ceiling(), round(), 'structures'.
Gary Oehlert
2003-01-15