Learn R Programming

gmp (version 0.3-1)

modulus: Modulus

Description

Access to modulus of a bigz

Usage

modulus(a,value)

Arguments

a
Object of class bigz
value
Object of class bigz

Examples

Run this code
x <- as.bigz(24)
  modulus(x)

  # x element of Z/31Z
  modulus(x) <- 31
  x+x
  # (6 %% 31)

Run the code above in your browser using DataLab