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

From STX Wiki
Jump to navigationJump to search
m (1 revision: Initial import)
No edit summary
Line 1: Line 1:
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
=====round=====
Round to the nearest integer.
Round to the nearest integer.


=====Usage:=====
;Usage: '''<code>round(<var>x</var>)</code>'''
 
:;<var>x</var>: a scalar, vector or matrix
<code>round(<var>x</var>)</code>
;Result: The result ''r'' has the same type as the argument ''x''.
 
::<code>''r''[''i'',''j''] := nearest-integer-of ''x''[''i'',''j'']</code>
=====Return Type:=====
;See also: [[Programmer_Guide/Command_Reference/EVAL/int|int]], [[Programmer_Guide/Command_Reference/EVAL/floor|floor]], [[Programmer_Guide/Command_Reference/EVAL/sign|sign]]


same as <var>x</var>
[[Programmer_Guide/Command_Reference/EVAL#Functions|<function list>]]

Revision as of 11:54, 4 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