Mod

PureSafeMath Calculate Plugin - Mul

Description

Returns the remainder of a division, after value1 is divided by value2

Method

mod(uint256, uint256)

Method Parameters

Returned Values

Example

Example with initParams

const mod = new PureSafeMath.calculate.Mod({
 chainId: 1,
 initParams: {
   methodParams: {
     value1: "60",
     value2: "7"
   }
 }
})

Example without initParams

const mod = new PureSafeMath.calculate.Mod({ chainId: 1 })

mod.input.set({
   methodParams: {
     value1: "60",
     value2: "7"
   }
})

Last updated