Problem 57978. Calculate BMI
Solution Stats
Problem Comments
-
3 Comments
A few more test cases would be nice.
Most of the solutions seem to complicate the calculation to artificially compensate for the fact that the test problem result is in error by 0.01.
Re: the value in the single test case, it's possible that you're supposed to truncate at two decimal digits as well. Which actually makes me wish MATLAB had something like floor(x, 2) and ceil(x, 2), akin to round(x, 2).
Solution Comments
Show commentsProblem Recent Solvers31
Suggested Problems
-
Return the largest number that is adjacent to a zero
5508 Solvers
-
Calculate the area of a triangle between three points
3404 Solvers
-
Multiples of a Number in a Given Range
939 Solvers
-
Who is the smartest MATLAB programmer?
788 Solvers
-
07 - Common functions and indexing 1
451 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!