Included a whole number percentage calculator contract.
Environment
Compiler version: 0.8.7
Target EVM version (as per compiler settings): default
Framework/IDE (e.g. Truffle or Remix): Remix
Operating system: Windows
Description
The contract calculates the percentage of a number to a set decimal place and returns it.
The returned value can then be used in the front end to get the actual decimal value.
How can this feature help?
In Decentralized Finance projects, where a set percentage of tokens are to be sent to designated addresses.
Whole Number Percentage Calculator
Included a whole number percentage calculator contract.
Environment
Description
The contract calculates the percentage of a number to a set decimal place and returns it. The returned value can then be used in the front end to get the actual decimal value.
How can this feature help?
In Decentralized Finance projects, where a set percentage of tokens are to be sent to designated addresses.