MathOperations

Under Review

TOOLS

Contract purpose

This is a contract used for basic math operations.

Exposed methods

mul Multiplies two numbers.

parameter nametypedetails
_firstintegerthe first number
_secondintegerthe second number

div Integer division of two numbers.

parameter nametypedetails
_firstintegerthe first number
_secondintegerthe second number

sub Subtracts two numbers, reverts on overflow.

parameter nametypedetails
_firstintegerthe first number
_secondintegerthe second number

add Adds two numbers, reverts on overflow.

parameter nametypedetails
_firstintegerthe first number
_secondintegerthe second number

mod Divides two numbers and returns the remainder

parameter nametypedetails
_firstintegerthe first number
_secondintegerthe second number
Reviewed by Modex
Buy

Copyright © Modex Marketplace