Test integerness: Difference between revisions

mark a few solutions as incomplete as the task has changed
(removing extra-credit and making it a task requirement)
(mark a few solutions as incomplete as the task has changed)
Line 7:
 
=={{header|J}}==
{{incomplete}}
<lang J>(= <.) 3.14 7</lang>
{{out}}
Line 22 ⟶ 23:
 
=={{header|Python}}==
{{incomplete}}
<lang python>>>> def isint(f):
return int(f) == f
Line 32 ⟶ 34:
 
=={{header|REXX}}==
{{incomplete}}
{{incorrect|REXX|Can be zero and negative}}
<lang rexx>/* REXX ---------------------------------------------------------------
* 20.06.2014 Walter Pachl
Line 80 ⟶ 82:
 
=={{header|Tcl}}==
{{incomplete}}
The simplest method of doing this is testing whether the value is equal to the value after casting it to a integral value.
<lang tcl>proc isNumberIntegral {x} {
1,934

edits