1

Im learning solidity through cryptozombies.io and the first lesson ive come across this 83 % 7 + 1 = 7, does this mean that the floor division of 83 by 7 + 1 is equal to 7?

1 Answer 1

2

% is the modulo operator, it gives the remainder after integer division.

In your case, 83 % 7 = 6 + 1 = 7

You can find more details about modulo and other operators inside the official Solidity documentation.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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