Snipplr - tiaonlab
http://snipplr.com/users/tiaonlab
Recent snippets posted on Snipplr.comen-usSat, 13 Feb 2016 10:11:45 GMT(Pascal) Number utility functions
http://snipplr.com/view/2432/number-utility-functions/
Over the years I have made quite a few software programs in Delphi, and inevitably I have also come up with many useful functions. Most of them I have never published on the Internet before, now I would like to list on blog.
Part 1 are functions for managing integer or real numbers, they were written very early in 1997. ]]>Wed, 04 Apr 2007 09:28:15 GMThttp://snipplr.com/view/2432/number-utility-functions/(PHP) Test if a number is odd or even using bitwise operator
http://snipplr.com/view/2431/test-if-a-number-is-odd-or-even-using-bitwise-operator/
In PHP & or AND is a bitwise operator. When used it performs bitwise operation between two numbers. In the following example, the operator will test if the last bit of $number is 1. Thus successfully tests if $number is even or odd. ]]>Wed, 04 Apr 2007 09:25:21 GMThttp://snipplr.com/view/2431/test-if-a-number-is-odd-or-even-using-bitwise-operator/