Categories
Why is the remainder of the division different?
puts (5 % 3) # prints 2 puts (-5 % 3) # prints 1
Answer the question
In order to leave comments, you need to log in
and so: - 3 + 1 = 2 base here https://ru.wikipedia.org/wiki/%D0%94%D0%B5%D0%BB%D... disputes about implementation, apparently here https:// www.ruby-lang.org/en/community/
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question