Ruby

Ruby

Made by DeepSource

Use of deprecated BigDecimal.new RB-LI1005

Bug risk
Major
Autofix

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)