Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FiveWin 1.9.2 - January 97 - nand() generates a numeric and value from some numbers http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 nAnd()                 Generates a numeric AND value from some numbers
--------------------------------------------------------------------------------

   Syntax:              nAnd( <nValue1>, <nValue2> [,...<nValueN>] )
                            --> <nResult>

   Parameters:

   <nValue1>            A numeric value to be bit-ANDed with other
                        numeric values.

   <nValue2>            More numeric values to be bit-ANDded.
   <nValueN>

   Returns:

   <nResult>            A numeric value as result of bit-ANDded
                        all the numeric values supplied as parameters.

   Observations:        Just a little remembering:

                        1 AND 1 = 1
                        1 AND 0 = 0
                        0 AND 1 = 0
                        0 AND 0 = 0

                        This is applicable to each bits in those
                        numeric values

   Sample:              MsgInfo( nAnd( 15, 2 ) )  // it will return 2

                        // 15 = '00001111'
                        //  2 = '00000010'
                        //================
                        //  2 = '00000010'

   Source code:         SOURCE\\FUNCTION\\Or.c

   See also:            nOr() lAnd()


Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson