bc.mod
Lua function bc.mod Summary 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.` See Also ... Topics Lua base functions Lua bc (big number) functions Lua bit manipulation functions Lua coroutine functions Lua debug functions Lua io functions Lua math functions Lua os functions Lua package functions Lua PCRE regular expression functions Lua script extensions Lua string functions Lua table functions Lua utilities Scripting Lua functions bc.add (Addition) bc.compare (Comparison) bc.digits (Digits after the decimal place) bc.div (Division) bc.isneg (Tests if negative) bc.iszero (Tests if zero) bc.mul (Multiplication) bc.number (Create a big number) bc.pow (Power) bc.sqrt (Square root) bc.sub (Subtraction) bc.tostring (Converts to a string) bc.version (Version) (Help topic: lua=bc.mod) Documentation contents page