Programmer Guide/Command Reference/EVAL/round: Difference between revisions
From STX Wiki
< Programmer Guide | Command Reference | EVAL
Jump to navigationJump to search
(initial import) |
No edit summary |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:{{SUBPAGENAME}}}} | {{DISPLAYTITLE:{{SUBPAGENAME}}}} | ||
Round to the nearest integer. | Round to the nearest integer. | ||
;Usage: <code>round(<var>x</var>)</code> | |||
:;<var>x</var>: a scalar, vector or matrix | |||
;Result: The result ''r'' has the same type as the argument ''x''. | |||
::<code>''r''[''i'',''j''] := nearest-integer-of ''x''[''i'',''j'']</code> | |||
;See also: [[../int|int]], [[../floor|floor]], [[../sign|sign]] | |||
[[../#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]