Test integerness: Difference between revisions

→‎{{header|Ruby}}: add "improve" template
(→‎{{header|Ruby}}: add "improve" template)
Line 1,216:
 
=={{header|Ruby}}==
 
{{improve|Ruby|This method appears to support arbitrarily large floats, as well as special float values like NaN and infinity, but doesn't demonstrate it. A test-case should probably be added. (See the test-cases in the task description.)}}
 
Testing for integerness of floats, rationals and complex numbers:
<lang ruby>
Anonymous user