bc.mod

Modulus

Prototype

n = bc.mod (a, b)

Description

Returns a modulus b. That is, the remainder, after dividing a by b.

If b is zero, returns nil.

Lua functions

Topics