The OpenD Programming Language

UInt.opOpAssign

Performs big %= rhs operation.

Parameters

rhs ulong

unsigned value to divide by

Return Value

Type: ref

remainder from division

Examples

auto a = UInt!128.fromHexString("e3251bacb112c88b71ad3f85a970a314");
auto b = UInt!128.fromHexString("dfbbfae3cd0aff2714a1de7022b0029d");
assert(a / b == UInt!128.fromHexString("1"));
assert(a % b == UInt!128.fromHexString("36920c8e407c9645d0b611586c0a077"));

Meta