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 intResult = mod(7, 4)
let floatResult = mod(7.5, 4.0)

References