Even or odd: Difference between revisions
Content added Content deleted
(add TI-57) |
m (add RPL) |
||
Line 4,164: | Line 4,164: | ||
</pre> |
</pre> |
||
=={{header|TI-57}}== |
|||
This routine returns the remainder of the division by 2 of the number in the display register. It is therefore a kind of is_odd(x) function. |
This routine returns the remainder of the division by 2 of the number in the display register. It is therefore a kind of is_odd(x) function. |
||
Lbl 9 |
Lbl 9 |
||
Line 4,175: | Line 4,176: | ||
2 |
2 |
||
= |
= |
||
INV SBR |
INV SBR |
||
=={{header|TUSCRIPT}}== |
=={{header|TUSCRIPT}}== |