I think you have your W and H mixed up in your example and test suite.
Thanks James, I've fixed it now.
I also used round, but I not seen to be the best solution.
36.6/20.6==16/9 is false.
The values from the test suite are also inaccurate.
15528 Solvers
Make one big string out of two smaller strings
1161 Solvers
265 Solvers
Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
566 Solvers
276 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!