Programmer Guide/Command Reference/EVAL/floor: Difference between revisions
From STX Wiki
< Programmer Guide | Command Reference | EVAL
Jump to navigationJump to search
No edit summary |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:{{SUBPAGENAME}}}} | {{DISPLAYTITLE:{{SUBPAGENAME}}}} | ||
Compute the floor - the largest integer less than or equal to the floating point number. | Compute the floor - the largest integer less than or equal to the floating point number. | ||
;Usage: <code>floor(<var>x</var>)</code> | |||
;Usage: | |||
:;<var>x</var>: a scalar, vector or matrix | :;<var>x</var>: a scalar, vector or matrix | ||
;Result | ;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: [[ | ;See also: [[../int|int]], [[../round|round]], [[../sign|sign]] | ||
[[ | [[../#Functions|<function list>]] |
Latest revision as of 10:44, 21 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]