Check that number is whole number Say x=15, then answer is 1. x=15.2 , then answer is 0. http://en.wikipedia.org/wiki/Whole_number
Solution Stats
Problem Comments
6 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers5481
Suggested Problems
-
Return the largest number that is adjacent to a zero
5546 Solvers
-
Arrange Vector in descending order
13995 Solvers
-
Side of an equilateral triangle
7203 Solvers
-
ベクトル [1 2 3 4 5 6 7 8 9 10] の作成
602 Solvers
-
Given a square and a circle, please decide whether the square covers more area.
1895 Solvers
More from this Author70
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
test suite is poor
what is test 8 doing??
@AJ it's passing a vector of numbers, and expecting a vector of flags indicating whether each of those numbers is whole or not.
I wrote solution and tested it on all test suite items, and it was correct, Why it keeps giving me here that it failed tests!?
good
Nice problem!