Problem 48. Making change
38.97% Correct | 61.03% Incorrect
Last Solution submitted on May 28, 2023
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 CommentsShow comments
Problem Recent Solvers3030
Find the sum of all the numbers of the input vector
More from this Author96
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!