Description
Provides arbitrary-precision decimal arithmetic for Ruby, useful when binary floating-point is not appropriate. It is commonly used for finance, measurements, serialization, and calculations that need predictable decimal behavior.
Decimal arithmetic reduces some rounding surprises but does not remove the need for domain rules. Validate precision, rounding mode, and formatting in finance or scientific code.