Syntax Lookup

Enter some language construct you want to know more about.

%

This is the mod operator (remainder semantics).

The % operator has mod naming in ReScript, but its semantics are remainder (like JavaScript %).

It supports int, float, and bigint.

Example

ReScriptJS Output
let result = mod(7, 4)