Problem 2867. Matlab Basics - Rounding III
Solution Stats
Problem Comments
-
4 Comments
Show
1 older comment
Guillaume
on 23 Jan 2015
You can write as many zeros as you want after 12358470000.0, it's still the same number as 12358470000
Syed Shahed
on 26 Apr 2020
what is the problem with the following solution bro !
% roundn(x,2)
Check,it's the same as round(x,2).
Dyuman Joshi
on 9 May 2021
Test suite has been updated with additional test cases.
Isabella Stellitano
on 8 Nov 2021
Good problem
Solution Comments
-
1 Comment
Dũng
on 24 Feb 2023 at 7:52
easy
-
1 Comment
Haoran Tian
on 28 Nov 2021
nice one
-
1 Comment
Josh Klueber
on 18 Nov 2021
easy
-
1 Comment
Muhtasim Haque Nahian
on 9 May 2021
add more test suites. You can simply write y=12358470000 to pass the test suites now. So add variations
-
1 Comment
john perkins
on 4 May 2021
easy
-
1 Comment
Cory Cunningham
on 11 Dec 2020
Interesting problem
-
1 Comment
Tadesse Hadush Negash
on 26 Nov 2020
The problem needs correction. Rounding to nearest 10,000 means no body cares about .000 values. y_correct = 12358470000.000; should be y_correct = 12358470000.
-
1 Comment
Stefano Berardi
on 5 May 2020
nice
Problem Recent Solvers2890
Suggested Problems
-
1337 Solvers
-
428 Solvers
-
613 Solvers
-
3581 Solvers
-
398 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!