Clean package repo for Gitea installs via packages.yml git URL. Co-authored-by: Cursor <cursoragent@cursor.com>
10 lines
253 B
SQL
10 lines
253 B
SQL
{% macro percentage_formula(summation, total) %}
|
|
abs(
|
|
(
|
|
cast({{ summation }} as {{ numeric_type() }})
|
|
) /
|
|
nullif(
|
|
cast( {{ total }} as {{ numeric_type() }} )
|
|
, 0) * 100.0
|
|
)
|
|
{% endmacro %} |