Manuals/calci/BITOR
Jump to navigation
Jump to search
BITOR(n1,n2)
- where Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle n1} and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle n2} specify the numeric values on which the bitwise OR operation is to be performed.
Description
- BITOR() returns the result of bitwise OR operation performed on numeric values.
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle n1} and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle n2} must be in decimal form and greater than or equal to 0.
- In the result, each bit position is 1 if any of the parameter's Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle n1} or Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle n2} bits at that position are 1.
- If either argument is a non-numeric value, BITOR returns the #VALUE! error value.
For Example,
BITOR(1,6) = 7
BITOR(true, true) = 1
Examples
- =BITOR(3,5) = 7
- =BITOR(17,-22) = -5
- =BITOR(-9,-3) = -1
- =BITOR(0.5,0.1) = 0
- =BITOR(12, 7) = 15
Related Videos
See Also
References