• ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
  • ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
Guidelines
The HP Community is where owners of HP products, like you, volunteer to help each other find solutions.
Archived This topic has been archived. Information and links in this thread may no longer be available or relevant. If you have a question create a new topic by clicking here and select the appropriate board.
HP Recommended

Mathmatically, how does the RMDR function manage negative numbers?  for example:  using an argument of

(-187,360), the RMDR function gives 173.  Clearly it can be seen, that 187 + 173 = 360, but it is unclear as to how internally, the calculator makes the adjustment.  Any ideas?

 

SRMac

1 REPLY 1
HP Recommended

Hi,

 

The RMDR function cannot handle negative numbers, the answer it gave is wrong.

 

Ignoring the negative, what you were asking for was the remainder of 187/360, which is 187 (as the numerator is already smaller than the denominator).

 

What the calculator gave you was the remainder for 360/187 (which = 1 & 173/360, i.e. remainder is 173).

 

The RMDR function is also known as the MOD function, which is often calculated as MOD(x,y) = x-y*Floor(x/y), where Floor is the greatest integer that is less than or equal to the argument.

 

From this we can see the error:

x-y*Floor(x/y)

= -187-360*Floor(-187/360)

= -187-360*Floor(-0.5194')

= -187-360*(-1)

= -187+360

= 173  (which is incorrect)

 

I suggest you avoid using negatives in the RMDR function.

 

Hope this helps.

 

-Bart
_________________________________________________________
calculator enthusiast
Archived This topic has been archived. Information and links in this thread may no longer be available or relevant. If you have a question create a new topic by clicking here and select the appropriate board.
† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the <a href="https://www8.hp.com/us/en/terms-of-use.html" class="udrlinesmall">Terms of Use</a> and <a href="/t5/custom/page/page-id/hp.rulespage" class="udrlinesmall"> Rules of Participation</a>.