round - Maple Help

Online Help

All Products    Maple    MapleSim


MTM

  

round

  

round to nearest integer

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

round(M)

Parameters

M

-

array or expression

Description

• 

round(M) rounds M to the nearest integer.

• 

The round(M) function rounds element-wise to the nearest integer of M.  The result, R, is formed as R[i,j] = round(M[i,j]).

Examples

withMTM:

MMatrix2,3,fill=3.6:

roundM

−4−4−4−4−4−4

(1)

See Also

MTM[ceil]

MTM[fix]

MTM[floor]

MTM[frac]

round