Problem 49067. Area Conversion 1
need to use 3.28089357 and then round 4...
round to 4 places
conv ratio is 10.76425 by revers result i has it.remember round to 4
This is an amazingly ill-specified problem. A foot is exactly 0.3048 meters by definition, and the test suite apparently uses a different value, in addition to requiring rounding to four decimal digits (which is neither necessary nor correct).
Never use equality tests with floats.
The problem is too badly formed and needs to be structured with the test suits or at least mention the conversion factor
1 ft is exactly equal to 0.3048 meters (1 in = 2.54 cm). The conversion factor for this problem needs to be updated to reflect this value else correctly solving for each solution set is more trial and error and less math.
Problem Recent Solvers408
Find the maximum number of decimal places in a set of numbers
Who is the smartest MATLAB programmer?
More from this Author180
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!