Difference between revisions of "BitOr"
Jump to navigation
Jump to search
ZachStrout (talk | contribs) |
ZachStrout (talk | contribs) |
||
| Line 17: | Line 17: | ||
=== Usage Notes === | === Usage Notes === | ||
| − | + | ||
== Example == | == Example == | ||
Revision as of 23:03, 15 March 2020
bitOr treats its arguments as integers, and computes the bitwise `or`: each bit in the result is set if the corresponding
bit is set in either (or both) of the arguments.
Arguments
| Parameter Name | Default Value | Meaning |
|---|---|---|
| i | number, default 0 | first integer argument |
| j | number, default 0 | second integer argument |
Usage Notes
Example
bitOr(14, 7) // returns 15