DarkMatter.Decimals.decimal_cmp

You're seeing just the function decimal_cmp, go back to DarkMatter.Decimals module for more information.

Specs

Compares x of type numeric/0 to y of type numeric/0.

Returns :eq or :gt or :lt.

Examples

iex> decimal_cmp(1, 1) :eq

iex> decimal_cmp(3, 0) :gt

iex> decimal_cmp(1, 2) :lt