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
-
3 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.
Solution Comments
Show commentsProblem Recent Solvers3840
Suggested Problems
-
Create a vector whose elements depend on the previous element
613 Solvers
-
Given a matrix, swap the 2nd & 3rd columns
998 Solvers
-
1076 Solvers
-
Given a square and a circle, please decide whether the square covers more area.
778 Solvers
-
Number of Even Elements in Fibonacci Sequence
1245 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!