Div

PureSafeMath Calculate Plugin - Div

Description

Divide value1 with value2

Method

div(uint256, uint256)

Method Parameters

NamePlugin TypeDescription

value1

FctValue

value2

FctValue

Returned Values

NamePlugin TypeDescription

value

FctValue

Returns the result of calculation

Example

Example with initParams

const div = new PureSafeMath.calculate.Div({
 chainId: 1,
 initParams: {
   methodParams: {
     value1: "60",
     value2: "2"
   }
 }
})

Example without initParams

const div = new PureSafeMath.calculate.Div({ chainId: 1 })

div.input.set({
   methodParams: {
     value1: "60",
     value2: "2"
   }
})

Last updated