query
On this page

mod

lib.trivial.mod

Docs pulled from | This Revision | 14 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

Noogle detected

Aliases

Implementation

The following is the current implementation of this function.

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