Group: | Mathematical Functions |
Topic: | Common Functions |
See also: | ceil floor |
Function: | rint | |
Description: | rint gives the next nearest integer value of the elements of an array. |
Usage: | z = rint (x) | |
Input: | ||
x | array | |
Output: | ||
z | array |
x = #(0.79, 2.1) ~ #(-3.99, -6.01) rint(x)
Contents of rint [1,] 1 -4 [2,] 2 -6