1

How can I calculate percentage of a number in solidity? say I want to calculate 95% of the number 200.

How should I go about doing that ?

Adrin
  • 199
  • 1
  • 8

1 Answers1

0

It is hard to calculate exact number by division in computer.

If just you want to get 95% of 200, 200/100 * 95 is the answer. But if you ask how can i get exact number of result of division, it can't in some number.

defender
  • 9
  • 1