Project

General

Profile

Feature #13625

BigDecimal short form / shorthand

Added by AaronLasseigne (Aaron Lasseigne) over 2 years ago. Updated over 1 year ago.

Status:
Rejected
Priority:
Normal
Target version:
-
[ruby-core:81535]

Description

Add a shorthand for creating a BigDecimal, similar to how 1.2r creates a Rational.

> 3.1d
=> #<BigDecimal:7fde9def71c0,'0.31E1',18(18)>

History

Updated by shyouhei (Shyouhei Urabe) over 2 years ago

  • Tracker changed from Bug to Feature

Let me mark this begin a feature request.

Updated by mrkn (Kenta Murata) about 2 years ago

Note that BigDecimal class is defined in a standard library, but it is not built-in.

Updated by mrkn (Kenta Murata) almost 2 years ago

  • Target version set to 2.6
  • Assignee set to matz (Yukihiro Matsumoto)
#4

Updated by naruse (Yui NARUSE) almost 2 years ago

  • Target version deleted (2.6)

Updated by mrkn (Kenta Murata) over 1 year ago

  • Status changed from Open to Rejected

BigDecimal is not a core class, so we cannot add such a syntax sugar.

Also available in: Atom PDF