round

Navigation:  Language Reference > Functions > Arithmetic >

round

Previous pageReturn to chapter overviewNext page

Syntax

Y = round(X);

Description

Rounds X or the elements of X to the nearest integer.

Examples

X

round(X)

1

1

2.1

2

-2.6

-3

3.7

4

[1.1,-2.7;3.5,-4.1]

[1,-3;4,-4]

 

Limitations

X and Y must have the same size.