-
4 Comments
Dear creator,
I am writing this message because, for some reason, at the time I coded the correct solution, for some reason 1 of the tests fails every time, despite the solution is exactly the same.
If you need any proof, I can enclose a screenshot to prove it.
Many thanks for your time,
Yours sincerely,
R.G.
While it is helpful to provide a conversion factor, the solution here is to round the result to the fourth decimal place, since that is what is being checked. This is now stated in the problem description.
Thank you for providing the required precision of the solution. However, the precision of the conversion factor needs to be stated or else the exact value needs to be used for this conversion.
5280(miles to feet)*0.3048(feet to meters)/1000(meters to km) is exactly equal to 1.609344 not 1.60934
Suggested Problems
-
4720 Solvers
-
2452 Solvers
-
1600 Solvers
-
344 Solvers
-
321 Solvers
More from this Author180
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!