round
- round(X) returns matrix X with its elements rounded to the nearest integer
- round(X,prec) rounds up to decimal precision defined by argument prec
Examples
> round(pi) [ans:3]
> round(pi,3) [ans:3.142]
> round(pi) [ans:3]
> round(pi,3) [ans:3.142]