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

From STX Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 4: Line 4:
;Usage: '''<code>floor(<var>x</var>)</code>'''
;Usage: '''<code>floor(<var>x</var>)</code>'''
:;<var>x</var>: a scalar, vector or matrix
:;<var>x</var>: a scalar, vector or matrix
;Result 1: 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''] := largest-integer <= ''x''[''i'',''j'']</code>
::<code>''r''[''i'',''j''] := largest-integer <= ''x''[''i'',''j'']</code>
;See also: [[Programmer_Guide/Command_Reference/EVAL/int|int]], [[Programmer_Guide/Command_Reference/EVAL/round|round]], [[Programmer_Guide/Command_Reference/EVAL/sign|sign]]  
;See also: [[Programmer_Guide/Command_Reference/EVAL/int|int]], [[Programmer_Guide/Command_Reference/EVAL/round|round]], [[Programmer_Guide/Command_Reference/EVAL/sign|sign]]  


[[Programmer_Guide/Command_Reference/EVAL#Functions|<function list>]]
[[Programmer_Guide/Command_Reference/EVAL#Functions|<function list>]]

Revision as of 12:52, 4 April 2011

Compute the floor - the largest integer less than or equal to the floating point number.

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

<function list>

Navigation menu

Personal tools