Project

General

Profile

Actions

Feature #13625

closed

BigDecimal short form / shorthand

Added by AaronLasseigne (Aaron Lasseigne) over 7 years ago. Updated over 6 years ago.

Status:
Rejected
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) over 7 years ago

  • Tracker changed from Bug to Feature

Let me mark this begin a feature request.

Updated by mrkn (Kenta Murata) about 7 years ago

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

Updated by mrkn (Kenta Murata) almost 7 years ago

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

Updated by naruse (Yui NARUSE) almost 7 years ago

  • Target version deleted (2.6)

Updated by mrkn (Kenta Murata) over 6 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

Like0
Like0Like0Like0Like0Like0