Next: for Up: MacAnova Help File Previous: findfile()   Contents

floor()

Usage:
floor(x), x REAL or a structure with REAL components



Keywords: transformations
                                  Usage
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

                           Too large arguments
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.

                           Structure argument
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).

                            Cross references
See also topics ceiling(), round(), 'structures'.


Gary Oehlert 2005-08-12