[ruby-dev:49347] [Ruby trunk - Feature #11694] [Open] Numeric#nonpositive?, nonnegative?

From: 5.5@...
Date: 2015-11-16 00:56:13 UTC
List: ruby-dev #49347
Issue #11694 has been reported by 5 5.

----------------------------------------
Feature #11694: Numeric#nonpositive?, nonnegative?
https://bugs.ruby-lang.org/issues/11694

* Author: 5 5
* Status: Open
* Priority: Normal
* Assignee: 
----------------------------------------
数値が正であるという条件式のほか,非負であるという条件式もしばしば使います。
Numeric#positive?, negative? があるのなら Numeric#nonpositive?, nonnegative? もあってほしい。



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

In This Thread

Prev Next