DarkMatter.Decimals.decimal_percent
You're seeing just the function
decimal_percent
, go back to DarkMatter.Decimals module for more information.
Gives the percentage of x
relative to y
of type numeric/0
.
Examples
iex> decimal_percent(20, 100) %Decimal{coef: 2, exp: 1}