From: "ko1 (Koichi Sasada)" <redmine@...>
Date: 2012-10-27T07:35:16+09:00
Subject: [ruby-core:48395] [ruby-trunk - Feature #6973] Add an #integral? method to Numeric to test for whole-number values


Issue #6973 has been updated by ko1 (Koichi Sasada).

Category set to core
Assignee set to mame (Yusuke Endoh)

mame-san, could you judge on it?
----------------------------------------
Feature #6973: Add an #integral? method to Numeric to test for whole-number values
https://bugs.ruby-lang.org/issues/6973#change-31709

Author: regularfry (Alex Young)
Status: Open
Priority: Normal
Assignee: mame (Yusuke Endoh)
Category: core
Target version: 2.0.0


Numeric#integer? checks whether an instance is an Integer.  It is often useful to check whether the value of a non-Integer variable is actually a whole number, and the #integer? method doesn't help here.

This patch adds Numeric#integral?, which performs this check.


-- 
http://bugs.ruby-lang.org/