Problem 44690. Comparison of floating-point numbers (doubles)
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.
Solution CommentsShow comments
Problem Recent Solvers7
How to find the position of an element in a vector without using the find function
Back to basics 19 - character types
Find the largest value in the 3D matrix
Getting the indices from a matrix
Penny Flipping: Reverse subsets of a sequence of coins until you recover the original configuration
More from this Author32
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!