Skip to content

llModPow

function ll.ModPow(Value: number, Power: number, Modulus: number): number

Returns a Value raised to the Power, mod Modulus. ((a**b)%c) b is capped at 0xFFFF (16 bits).

Returns (Value ^ Power) % Modulus. (Value raised to the Power, Modulus). Value is capped at 0xFFFF (16 bits).

Parameters
Value (number)
Power (number)
Modulus (number)

Add example usage here showing SLua/Luau syntax with ll.ModPow().

Add additional notes, caveats, or tips specific to using this function in SLua/Luau.