Problem 49077. Velocity Conversion
Why on this we have to round at the fourth decimal, but for the conversion, we have to keep even the fifth? This group of problem should have been someway useful to refresh units conversion, but I think that achieve just the objective to show how awful it is to keep using an imperial system of measurement
Use 1.60934 as conversion factor or else it will have issues
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,
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
Problem Recent Solvers460
Create a cell array out of a struct
More from this Author180
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!