12-31-2022, 07:52 PM

I was reading the manual of the Casio 991 DE X (I am not sure which model would be the international one) and I noticed that it had the modulo function. I though "woah, they are really putting more and more functions in good non-programmable and non-graphing calculators".

Then I looked at my trusty sharp el506w (bought in the early 2000), that is very good for many needs, and I thought: "well this model doesn't have a modulo function or a function that can compute the reminder between dividend and divisor".

Or doesn't it?

I noticed that the sharp el506w has the function a b/c, this function transforms the result of a decimal division X/Y in the form: a + b/c . Where a is normally an integer (0 or 1 in most cases), c is equal to Y or a submultiple of it.

Therefore the value of b is the reminder of the formula X mod Y. If c is a submultiple of Y, then one needs to multiply the value b by Y/c . In other words the modulo can be obtained relatively quickly with few operations.

I was thinking: is there a better way (with an handful of operations at most) to compute the modulo on such calculators? Is the same approach working on other calculators or does one need to get creative on other models? (considering models that are meant for scientific usage though and have plenty of functions, not really basic calculators)

Then I looked at my trusty sharp el506w (bought in the early 2000), that is very good for many needs, and I thought: "well this model doesn't have a modulo function or a function that can compute the reminder between dividend and divisor".

Or doesn't it?

I noticed that the sharp el506w has the function a b/c, this function transforms the result of a decimal division X/Y in the form: a + b/c . Where a is normally an integer (0 or 1 in most cases), c is equal to Y or a submultiple of it.

Therefore the value of b is the reminder of the formula X mod Y. If c is a submultiple of Y, then one needs to multiply the value b by Y/c . In other words the modulo can be obtained relatively quickly with few operations.

I was thinking: is there a better way (with an handful of operations at most) to compute the modulo on such calculators? Is the same approach working on other calculators or does one need to get creative on other models? (considering models that are meant for scientific usage though and have plenty of functions, not really basic calculators)