HyperMath

Floor

Floor

Previous topic Next topic No expanding text in this topic  

Floor

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

Rounds to the next lowest integer.

Syntax

i = Floor(m)

Argument

Name

Description

 

m

A scalar, vector or matrix.

Output

Name

Description

 

i

Each element rounded to the next lowest integer.  For negative values, it rounds away from zero.

Example

Round to the next upper integer of elements in a vector:

 

Syntax

 

i = Floor([-1.2,2.1,2.8,4])

 

Result

 

i = -2 2 2 4

See Also:

Floor

Round