Is it a whole number? A number is whole if it is a non-negative integer with no decimal part. So 0 and 8 and 233494.0 are whole, while 1.1 and 0.001 and 233494.999 are not.



Input

A floating-point number in the default base/encoding of your language.  

For example, the default integer representation for Binary Lambda Calculus would be Church numerals. But the default integer representation for Python is base 10 decimal, not Unary.

Output

A truthy value if the input is whole, a falsy value if it is not.

Note that if your language only supports decimal precision to, say, 8 places, 1.000000002 can be considered whole.

Input and output may be done via any standard I/O methods.



Test cases

Input        -&gt; Output
332          -&gt; true
33.2         -&gt; false
128239847    -&gt; true
0.128239847  -&gt; false
0            -&gt; true
0.000000000  -&gt; true
1.111111111  -&gt; false
-3.1415926   -&gt; false
-3           -&gt; false




Scoring

As with code-golf, the shortest submission wins. Good luck!
Haskell, 27 16 bytes

This function checks whether x is contained in the list of nonnegative integers that are not greater than x.



f x=elem x[0..x]


Try it online!