HyperMath

Round

Round

Previous topic Next topic No expanding text in this topic  

Round

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

Rounds to the nearest integer.

Syntax

i = Round(m)

Argument

Name

Description

 

m

A scalar, vector, or matrix.

Output

Name

Description

 

i

Each element rounded to nearest integer.

Example

Find the nearest integer of elements in a vector:

 

Syntax

 

i = Round([-1.9,2.1,2.8])

 

Result

 

i = -2 2 3

See Also:

Ceil

Floor