With the help of
Numpy matrix.round() method, we are able to round off the values of the given matrix.
Return : Return rounded values in matrix
Example #1 :
In the given example we are able to round off the given matrix by using
[[ 6. 1.] [ 13. 32.]]
Example #2 :
[[ 1. 2.] [ 5. 6.] [ 7. 9.]]
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course.