Project

General

Profile

Actions

Bug #6477

closed

BigDecimal to_i and to_int methods

Added by andhapp (Anuj Dutta) over 9 years ago. Updated over 9 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
1.9.3-p194
Backport:
[ruby-core:45177]

Description

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.

Actions

Also available in: Atom PDF