EvenOdd ======= Two Boolean functions to test whether a number is even (ie divisible by two) Usage ----- true% = EVEN%(number) and true% = ODD%(number) where number is an integer (byte..long) true% is either 1 (TRUE) or 0 (FALSE) Programming notes ----------------- Perhaps unfortunately I altered the meaning of the previous version of EVEN to something like round up. This caused some problems in earlier applications. So I made this new version that is a simple boolean test. The previous version of ODD gave an integer result despite not having an integer postfix. The code for even and odd is virtually the same so they are both kept in the same file. You only need to name one of them if you choose. Program status -------------- V0.01, pjw, 2025 Apr 27 Conditions of use and DISCLAIMER as per Knoware.no
Generated by QuickHTM, 2025 Apr 27