DarkMatter.Decimals.to_percentage
You're seeing just the function
to_percentage
, go back to DarkMatter.Decimals module for more information.
Specs
to_percentage(DarkMatter.numeric()) :: Decimal.t()
Gives the percentage representation of anx
of type DarkMatter.numeric/0
.
Examples
iex> to_percentage(0.25)
%Decimal{coef: 25, exp: 0}