Difference between revisions of "BitAnd"
Jump to navigation
Jump to search
ZachStrout (talk | contribs) (Created page with "<c>bitAnd</c> treats its arguments as integers, and computes the bitwise `and`: each bit in the result is set only if the corresponding bit is set in both arguments. === Arg...") |
ZachStrout (talk | contribs) |
||
Line 3: | Line 3: | ||
bit is set in both arguments. | bit is set in both arguments. | ||
+ | See also: [[bitOr]]; [[bitXor]] | ||
=== Arguments === | === Arguments === |
Latest revision as of 22:55, 15 March 2020
bitAnd
treats its arguments as integers, and computes the bitwise
`and`: each bit in the result is set only if the corresponding
bit is set in both arguments.
Arguments
Parameter Name | Default Value | Meaning |
---|---|---|
i | number, default 0 | first integer argument |
j | number, default 0 | second integer argument |
Example
bitAnd(14, 7) // returns 6