The % operator computes the remainder, like JavaScript %.
%
It supports int, float, and bigint.
int
float
bigint
let intResult = 7 % 4 let floatResult = 7.5 % 4.0
Primitive Types