Project

General

Profile

Actions

Feature #13625

closed

BigDecimal short form / shorthand

Added by AaronLasseigne (Aaron Lasseigne) almost 5 years ago. Updated almost 4 years 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)>

Updated by shyouhei (Shyouhei Urabe) almost 5 years ago

  • Tracker changed from Bug to Feature

Let me mark this begin a feature request.

Updated by mrkn (Kenta Murata) over 4 years ago

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

Updated by mrkn (Kenta Murata) over 4 years ago

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

Updated by naruse (Yui NARUSE) over 4 years ago

  • Target version deleted (2.6)

Updated by mrkn (Kenta Murata) almost 4 years ago

  • Status changed from Open to Rejected

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

Actions

Also available in: Atom PDF