BigDecimal.new()
is deprecated. Use BigDecimal()
instead. 1# frozen_string_literal: true
2
3a = {'hello' => 'world', "asss" => BigDecimal.new(123.456, 3)} 4puts a
5
6begin
Description
BigDecimal.new
has been deprecated since BigDecimal 1.3.3 and removed in 2.0.0. Use BigDecimal()
to create new instances of BigDecimal
.
Bad practice
BigDecimal.new(123.456, 3)
Recommended
BigDecimal(123.456, 3)