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

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


=====Usage:=====
[[../#Functions|<function list>]]
 
<code>floor(<var>x</var>)</code>
 
=====Result:=====
 
The floor for each of the input values (i.e. either a scalar, vector or matrix - depending on <var>x</var>).
 
=====Return Type:=====
 
the same as <var>x</var>

Latest revision as of 11: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]
See also
int, round, sign

<function list>

Navigation menu

Personal tools