Programmer Guide/Command Reference/EVAL/round: Difference between revisions

From STX Wiki
Jump to navigationJump to search
No edit summary
No edit summary
 
Line 5: Line 5:
;Result: The result ''r'' has the same type as the argument ''x''.
;Result: The result ''r'' has the same type as the argument ''x''.
::<code>''r''[''i'',''j''] := nearest-integer-of ''x''[''i'',''j'']</code>
::<code>''r''[''i'',''j''] := nearest-integer-of ''x''[''i'',''j'']</code>
;See also: [[../int|int]], [[../floor|floor]], [[../EVAL/sign|sign]]  
;See also: [[../int|int]], [[../floor|floor]], [[../sign|sign]]  


[[../#Functions|<function list>]]
[[../#Functions|<function list>]]

Latest revision as of 11:37, 21 April 2011

Round to the nearest integer.

Usage
round(x)
x
a scalar, vector or matrix
Result
The result r has the same type as the argument x.
r[i,j] := nearest-integer-of x[i,j]
See also
int, floor, sign

<function list>

Navigation menu

Personal tools