Problem 49067. Area Conversion 1
Solution Stats
Problem Comments
-
8 Comments
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.
dont use isequal() on a fricking float
also if you wanted to round a number to a specific decimal place, SPECIFY IT IN THE DESCRIPTION
What is the issue with this problem, even when the values come up same it shows assertion failed?
@Zuha Altaf Try rounding to four decimal digits.
Solution Comments
Show commentsProblem Recent Solvers743
Suggested Problems
-
Remove all the words that end with "ain"
2297 Solvers
-
1242 Solvers
-
Circular Primes (based on Project Euler, problem 35)
492 Solvers
-
Fix the last element of a cell array
1341 Solvers
-
180 Solvers
More from this Author180
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!