1<?xml version="1.0" encoding="UTF-8"?> 2 3<!--*********************************************************** 4 * 5 * Licensed to the Apache Software Foundation (ASF) under one 6 * or more contributor license agreements. See the NOTICE file 7 * distributed with this work for additional information 8 * regarding copyright ownership. The ASF licenses this file 9 * to you under the Apache License, Version 2.0 (the 10 * "License"); you may not use this file except in compliance 11 * with the License. You may obtain a copy of the License at 12 * 13 * http://www.apache.org/licenses/LICENSE-2.0 14 * 15 * Unless required by applicable law or agreed to in writing, 16 * software distributed under the License is distributed on an 17 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 18 * KIND, either express or implied. See the License for the 19 * specific language governing permissions and limitations 20 * under the License. 21 * 22 ***********************************************************--> 23 24<helpdocument version="1.0"> 25<meta> 26<topic id="textscalc01func_bitorxml" indexer="include" status="PUBLISH"> 27<title id="tit" xml-lang="en-US">BITOR</title> 28<filename>/text/scalc/01/func_bitor.xhp</filename> 29</topic> 30</meta> 31<body> 32<bookmark xml-lang="en-US" branch="index" id="bm_id3160301"> 33<bookmark_value>BITOR function</bookmark_value> 34<bookmark_value>bitwise OR</bookmark_value> 35</bookmark> 36<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_BITOR" id="bm_id3160302" localize="false"/> 37<paragraph role="heading" id="hd_id3160301" xml-lang="en-US" level="2" l10n="U"><variable id="bitor"><link href="text/scalc/01/func_bitor.xhp">BITOR</link> 38</variable></paragraph> 39<paragraph role="paragraph" id="par_id3160303" xml-lang="en-US" l10n="U"><ahelp hid="HID_FUNC_BITOR">Returns the bitwise OR of two integers.</ahelp> Each bit of the result is 1 if the corresponding bit of either argument is 1.</paragraph> 40<paragraph role="heading" id="hd_id3160304" xml-lang="en-US" level="3" l10n="U">Syntax</paragraph> 41<paragraph role="code" id="par_id3160305" xml-lang="en-US" l10n="U">BITOR(Number1; Number2)</paragraph> 42<paragraph role="paragraph" id="par_id3160306" xml-lang="en-US" l10n="U"><emph>Number1</emph> and <emph>Number2</emph> are integers greater than or equal to 0 and less than 2^48 (281474976710656).</paragraph> 43<paragraph role="heading" id="hd_id3160307" xml-lang="en-US" level="3" l10n="U">Remarks</paragraph> 44<paragraph role="paragraph" id="par_id3160308" xml-lang="en-US" l10n="U">Arguments are rounded down to integers before the operation. Values that are negative after rounding down, greater than 2^48 - 1, or not finite return an error (Err:502).</paragraph> 45<paragraph role="paragraph" id="par_id3160309" xml-lang="en-US" l10n="U">Example: decimal 6 is binary <quote>110</quote>, decimal 3 is binary <quote>011</quote>. BITOR(6; 3) returns 7 (binary <quote>111</quote>).</paragraph> 46<paragraph role="heading" id="hd_id3160310" xml-lang="en-US" level="3" l10n="U">Example</paragraph> 47<paragraph role="paragraph" id="par_id3160311" xml-lang="en-US" l10n="U"><item type="input">=BITOR(6; 3)</item> returns 7.</paragraph> 48<embed href="text/shared/00/00000001.xhp#siehe"/> 49<paragraph role="paragraph" id="par_id3160312" xml-lang="en-US" l10n="U"><link href="text/scalc/01/func_bitand.xhp" name="BITAND">BITAND</link>, <link href="text/scalc/01/func_bitxor.xhp" name="BITXOR">BITXOR</link>.</paragraph> 50</body> 51</helpdocument> 52