Do rounding nearest integer.
Example: -8.8, answer -9
+8.1 answer 8
+8.50 answer 9
Solution Stats
Problem Comments
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers6556
Suggested Problems
-
Extract leading non-zero digit
2252 Solvers
-
Change the sign of even index entries of the reversed vector
660 Solvers
-
427 Solvers
-
Element by element multiplication of two vectors
399 Solvers
-
621 Solvers
More from this Author70
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
easy problem
just use round