DarkMatter.Decimals.max_variance_percent

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

max_variance_percent(list)

View Source

Specs

max_variance_percent([DarkMatter.numeric()]) :: Decimal.t()

Determines the max variance percent of a list of type DarkMatter.numeric/0.

Defaults to 100 if given an empty list.

Examples

iex> max_variance_percent([8, 9, "10.5", 13.3, "$1.23", %Decimal{coef: 33}])
%Decimal{coef: 2638944422231107556977209116, exp: -25}

iex> max_variance_percent([])
%Decimal{coef: 1, exp: 2}

iex> max_variance_percent([], {0, 100})
%Decimal{coef: 0, exp: 0}

iex> max_variance_percent([1], {0, 100})
%Decimal{coef: 1, exp: 2}
Link to this function

max_variance_percent(list, default)

View Source

Specs

See DarkMatter.Decimals.Variance.max_variance_percent/2.