This question already has an answer here:

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

11wei by 2(integer value) = ?

Thank you.

marked as duplicate by flygoing, Achala Dissanayake, Richard Horrocks, Ismael, Roman Frolov Jan 30 '18 at 20:45

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Nope. I need to divide smallest representation of ehter by two: 11wei / 2 – alexey polusov Jan 29 '18 at 15:48
  • 1
    Right, which in the real world results in 5.5, but that's not possible in Solidity, which is exactly what the linked question talks about. – flygoing Jan 29 '18 at 15:59
  • @flygoing still some users find my question helpful because it straightforward as the answer provided – alexey polusov Mar 18 '18 at 8:28

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.