DarkMatter.Decimals.from_percentage

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

Specs

from_percentage(DarkMatter.numeric()) :: Decimal.t()

Gives the decimal representation of anx of type DarkMatter.numeric/0.

Examples

iex> from_percentage(25)
%Decimal{coef: 25, exp: -2}