Problem 48. Making change
Solution Stats
Problem Comments
-
7 Comments
Show
4 older comments
try12345
on 31 Jan 2014
whoa..rounding error uncovered
Alvery
on 14 Jul 2014
Also, "round(X,N)" gives an error - almost like it couldn't have a 2nd parameter
Jerivington
on 2 Jun 2016
Great problem, not too hard but required a bit of thinking
shahriar memaran
on 27 Feb 2017
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)!?
Shivam Jauhar
on 25 Apr 2017
good job! i enjoyed solving this code
Luyu Wang
on 6 Jul 2018
I cannot understand this problem. what means?
Serhii Tetora
on 9 Jan 2019
Why function roundn is undefined?
Solution Comments
Show commentsProblem Recent Solvers3030
Suggested Problems
-
84447 Solvers
-
Find the sum of all the numbers of the input vector
43191 Solvers
-
335 Solvers
-
558 Solvers
-
885 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!