i64.rem_u
Pops two
i64
values off the stack, divides the first by the second, takes the remaining amount, and then
pushes that on to the stack. This looks at the values as unsigned integers (positive values only).
$result = $first % $second
Stack In
i64 |
The first value to be divided. |
i64 |
The second value to divide by. |
Stack Out
i64 |
The remaining amount left after dividing the first value by the second one. |
Examples
i64.const 10
i64.const 3
i64.rem_u
i64.const 0xF23AB02CF178CD56
i64.const 42
i64.rem_u
i64.const 0xF23AB02CF178CD56
i64.const 42
i64.rem_s