We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3262dd commit da8a0b6Copy full SHA for da8a0b6
misc_docs/syntax/operators_mod.mdx
@@ -0,0 +1,25 @@
1
+---
2
+id: "mod"
3
+keywords: ["mod", "modulo", "operator"]
4
+name: "mod"
5
+summary: "This is the `modulo` operator."
6
+category: "operators"
7
8
+
9
+The `mod` operator calculates the *modulo* (remainder after division) of two integers.
10
11
+### Example
12
13
+<CodeTab labels={["ReScript", "JS Output"]}>
14
15
+```res
16
+let result = mod(7, 4)
17
+```
18
19
+```js
20
+var result = 3;
21
22
23
+</CodeTab>
24
25
0 commit comments