Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 357 Bytes

operators_mod.mdx

File metadata and controls

25 lines (17 loc) · 357 Bytes
idkeywordsnamesummarycategory
mod
mod
modulo
operator
mod
This is the `modulo` operator.
operators

The mod operator calculates the modulo (remainder after division) of two integers.

Example

<CodeTab labels={["ReScript", "JS Output"]}>

letresult=mod(7, 4)
varresult=3;
close