Write a script to round a large number to the nearest 10,000
e.g. x = 12,358,466,243 --> y = 12,358,470,000
Solution Stats
Problem Comments
4 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers5172
Suggested Problems
-
Make the vector [1 2 3 4 5 6 7 8 9 10]
52903 Solvers
-
Given two arrays, find the maximum overlap
1727 Solvers
-
Project Euler: Problem 3, Largest prime factor
1790 Solvers
-
1353 Solvers
-
Longest run of consecutive numbers
6479 Solvers
More from this Author28
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
You can write as many zeros as you want after 12358470000.0, it's still the same number as 12358470000
what is the problem with the following solution bro !
% roundn(x,2)
Check,it's the same as round(x,2).
Test suite has been updated with additional test cases.
Good problem