query
On this page

mod

lib.mod

Docs pulled from | This Revision | 13 minutes ago


Integer modulus

Inputs

base

1. Function argument

int

2. Function argument

Examples

lib.trivial.mod usage example

mod 11 10
=> 1
mod 1 10
=> 1
(lib.trivial.mod)

Noogle detected

Aliases

Implementation

The following is the current implementation of this function.

mod = base: int: base - (int * (builtins.div base int));