|
Contents | Previous | Next | Subchapters |
| Syntax |
roundoff(x) |
| See Also | round , int , floor , mod |
y = [-1.4, -.6, .6, 1.4, 1.6]
print roundoff(y)
returns
[-1 , -1 , 1 , 1 , 2]
roundoff is an integer matrix
while the return value of round(x)
has the same type as x