Issue #6477 has been updated by nobu (Nobuyoshi Nakada).

Status changed from Open to Rejected

They are not specific to BigDecimal.
to_i is for explicit conversion, called by users.
to_int is for implicit conversion, called by core/libraries.
----------------------------------------
Bug #6477: BigDecimal to_i and to_int methods
https://bugs.ruby-lang.org/issues/6477#change-26756

Author: andhapp (Anuj Dutta)
Status: Rejected
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: 1.9.3-p194


Hello,

Why are there two methods, to_i and to_int, in BigDecimal when they are exactly same in terms of functionality. Here's the link to the docs:

http://www.ruby-doc.org/stdlib-1.9.3/libdoc/bigdecimal/rdoc/BigDecimal.html#method-i-to_i

Am I missing something? Please enlighten.

Thanks.


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