DarkMatter.Decimals.decimal_percentage

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

decimal_percentage(x, y)

View Source

Specs

decimal_percentage(DarkMatter.numeric(), DarkMatter.numeric()) :: Decimal.t()

Gives the percentage of x relative to y of type DarkMatter.numeric/0.

Examples

iex> decimal_percentage(20, 100)
%Decimal{coef: 2, exp: 1}