When dividing by `` d '' , either both remainders are positive and therefore equal , or they have opposite signs . If the positive remainder is `` r `` 1 , and the negative one is `` r `` 2 , then For floating-point numbers .
When dividing by `` d '' , if the positive remainder is `` r `` 1 , and the negative one is `` r `` 2 , then The remainder for real numbers .