Problem 48. Making change
Solution Stats
Problem Comments
-
7 Comments
whoa..rounding error uncovered
Also, "round(X,N)" gives an error - almost like it couldn't have a 2nd parameter
Great problem, not too hard but required a bit of thinking
It took me a long time (before reading the comments !!!) to figure out that for instance the result for rem(135.01,100) is not 35.01 but is 35.009999999999991.
Can anyone help me with why the issue is there and how to solve it (not by adding 1e-3)!?
good job! i enjoyed solving this code
I cannot understand this problem. what means?
Why function roundn is undefined?
Solution Comments
Show commentsProblem Recent Solvers3030
Suggested Problems
-
5710 Solvers
-
Solving Quadratic Equations (Version 1)
470 Solvers
-
532 Solvers
-
Separate even from odd numbers in a vector - without loops
385 Solvers
-
Solve a System of Linear Equations
9143 Solvers
More from this Author96
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!