Mutare.Decimal.Sign (mutare_decimal v0.1.0)

Copy Markdown View Source

:decimal_sign — swaps Decimal sign operations and constructor signs.

The family changes sign-oriented Decimal calls:

Decimal.abs(num)    # -> Decimal.negate(num)
Decimal.negate(num) # -> Decimal.abs(num)

It also flips literal signs in Decimal.new/3 constructors:

Decimal.new(1, coef, exp)  # -> Decimal.new(-1, coef, exp)
Decimal.new(-1, coef, exp) # -> Decimal.new(1, coef, exp)

Summary

Functions

The target sign/function labels accepted by qualified mutare ignore directives.

Functions

variants()

@spec variants() :: [atom()]

The target sign/function labels accepted by qualified mutare ignore directives.