Project

General

Profile

Actions

Backport #2665

closed

compatibility issue of BigDecimal#** and #power

Added by matz (Yukihiro Matsumoto) about 14 years ago. Updated almost 5 years ago.

Status:
Closed
Assignee:
-
[ruby-dev:40178]

Description

=begin
まつもと ゆきひろです

In message "Re: [ruby-dev:40172] Re: [Bug:1.8] compatibility issue of BigDecimal#** and #power"
on Wed, 27 Jan 2010 16:09:18 +0900, Tadashi Saito writes:

|> - 1.8.7 以前のバグだった (1.8.6/1.8.7 にもバックポートすべき)
|
|当然こっちだと思います。
|
|1 / Infinity (=> 0) と Infinity ** -1 (=> NaN?) が異なるのはおかしいです。

私もバグだと思いますが、実際にDecimalを使う人が、元の方がう
れしいというのであれば(1.9も含めて)、戻しても構いません。
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0