website/layouts/partials/fullmod.html

5 lines
141 B
HTML
Raw Permalink Normal View History

{{- $a := index . 0 -}}
{{- $b := index . 1 -}}
{{- $c := mod $a $b -}}
{{- if lt $c 0 -}}{{- add $c $b -}}{{- else -}}{{- $c -}}{{- end -}}