0.1.3 • Published 2 years ago
libsol v0.1.3
libsol a usefull solidity usecases library
run the following command in cli in your project location
npm i libsol
- Greater number from Array of Multiple Numbers
import GreaterNumber library
import "libsol/libraries/SimpleMath.sol";
using this library into your preoject fil
using SimpleMath for int;
Use the function where you need Will get maxNumber from given _ArrayOfNumbers parameter
int MaxNumber = SimpleMath.GreaterNumber(int[] calldata _ArrayOfNumbers);
- Smaller number from Array of Multiple Numbers
Use the function where you need Will get maxNumber from given _ArrayOfNumbers parameter
int MaxNumber = SimpleMath.SmallerNumber(int[] calldata _ArrayOfNumbers);