HUGO
News Docs Themes Community GitHub

math.Mod

Returns the modulus of two integers.

Syntax

math.Mod VALUE1 VALUE2

Returns

int64

Alias

mod
{{ mod 15 3 }} → 0

Last updated: January 1, 0001
Improve this page