DarkMatter.Decimals.Arithmetic.decimal_percentage

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

decimal_percentage(allocation, total)

View Source

Specs

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

Calculate the percentage.