From 7c3a99eeca07f602bb1e5659656e8eab0a4eacfe Mon Sep 17 00:00:00 2001 From: Kasper Timm Hansen Date: Sun, 15 Jan 2017 19:49:34 +0100 Subject: Revert "Merge pull request #27686 from koic/friendly_bigdecimal_inspect" The exact inspect output of a BigDecimal is out of scope for what we're trying to communicate about `dup` and `duplicable?` here. Adding two examples distracts is disctracting, so keep the docs from before since our minimal version is Ruby 2.2.2. [ Koichi ITO, Jon Moss, Kasper Timm Hansen ] This reverts commit 2163874dedaf83e67599c2930c2686caa165fbad, reversing changes made to 46fdbc5290335ed38fa9fe2b6b0ef8abe4eccb1b. --- guides/source/active_support_core_extensions.md | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'guides') diff --git a/guides/source/active_support_core_extensions.md b/guides/source/active_support_core_extensions.md index b9f096b82a..67bed4c8da 100644 --- a/guides/source/active_support_core_extensions.md +++ b/guides/source/active_support_core_extensions.md @@ -1980,15 +1980,7 @@ and that symbol specifiers are also supported: BigDecimal.new(5.00, 6).to_s(:db) # => "5.0" ``` -Engineering notation is still supported. - -In Ruby 2.4: - -```ruby -BigDecimal.new(5.00, 6).to_s("e") # => "0.5e1" -``` - -Whereas in Ruby 2.2 and 2.3: +Engineering notation is still supported: ```ruby BigDecimal.new(5.00, 6).to_s("e") # => "0.5E1" -- cgit v1.2.3