Problem 44690. Comparison of floating-point numbers (doubles)
Solution Stats
Problem Comments
-
2 Comments
Again, good problem, but it would be better if base-10 or base-2 was adopted as a standard at the description
Hello, Rafael. Thank-you for the feedback. Each approach has pros and cons.
Using the same base for all numbers in the problem statement would make comparison easy at a glance, but the values would not all be exact.
The mixture of bases used in the problem statement means that exact values are used for all numbers; although the reader has some inconvenience to perform a conversion in order to compare magnitudes, there may be some more educational value in that, IMHO.
—DIV
Solution Comments
Show commentsProblem Recent Solvers7
Suggested Problems
-
2019 Solvers
-
Find common elements in matrix rows
2295 Solvers
-
Omit columns averages from a matrix
567 Solvers
-
"Low : High - Low : High - Turn around " -- Create a subindices vector
507 Solvers
-
155 Solvers
More from this Author32
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!