4

Do you know what should be the result of dividing suppose:

11wei by 2(integer value) = ?

Thank you.

1 Answers1

14

The result of 11/2 in Solidity is 5, because there are no floating point numbers so the decimal is truncated.

natewelch_
  • 12,021
  • 1
  • 29
  • 43