N
N
NikSIk312020-04-17 11:23:24
Algorithms
NikSIk31, 2020-04-17 11:23:24

Compare with -1?

How to check that modulo number (remainder of division) will give -1 ? If I work with either, in which I cannot explicitly prescribe -1.

Will it be correct if I compare the number with (modulus - 1) == 0 - then this is it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question