Anonymous user
Test integerness: Difference between revisions
→{{header|J}}: remove specious {{{incomplete}}} tag; add alternative approach; format entry
(→{{header|Python}}: Use is_integer()) |
(→{{header|J}}: remove specious {{{incomplete}}} tag; add alternative approach; format entry) |
||
Line 7:
=={{header|J}}==
'''Solution''':<lang j> isInt =: = <.</lang>
'''Alternative solution''' (remainder after diving by 1?): <lang j> isInt=: 0 = 1&|</lang>
'''Example''':<lang j> isInt 3.14 7
=={{header|Perl 6}}==
|