Problem 2559. Check that number is whole number
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
Show
3 older comments
Stefano Berardi
on 5 May 2020
test suite is poor
AJ
on 12 Dec 2023
what is test 8 doing??
Christian Schröder
on 12 Dec 2023
@AJ it's passing a vector of numbers, and expecting a vector of flags indicating whether each of those numbers is whole or not.
Sophia
on 20 May 2024
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!?
寒松
on 1 Jul 2024
good
Leandro
on 6 Aug 2024 at 13:23
Nice problem!
Solution Comments
Show commentsProblem Recent Solvers4202
Suggested Problems
-
Remove all the words that end with "ain"
2254 Solvers
-
Renaming a field in a structure array
1515 Solvers
-
given 3 sides, find area of this triangle
794 Solvers
-
324 Solvers
-
Find the max element of the array
1464 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!