1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <helpdocument version=
"1.0">
5 ***********************************************************************
7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
9 * Copyright 2008 by Sun Microsystems, Inc.
11 * OpenOffice.org - a multi-platform office productivity suite
13 * $RCSfile: soffice2xmlhelp.xsl,v $
16 * This file is part of OpenOffice.org.
18 * OpenOffice.org is free software: you can redistribute it and/or modify
19 * it under the terms of the GNU Lesser General Public License version 3
20 * only, as published by the Free Software Foundation.
22 * OpenOffice.org is distributed in the hope that it will be useful,
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 * GNU Lesser General Public License version 3 for more details
26 * (a copy is included in the LICENSE file that accompanied this code).
28 * You should have received a copy of the GNU Lesser General Public License
29 * version 3 along with OpenOffice.org. If not, see
30 * <http://www.openoffice.org/license.html>
31 * for a copy of the LGPLv3 License.
33 ************************************************************************
37 <topic id=
"textscalc0104060106xml" indexer=
"include">
38 <title xml-lang=
"en-US" id=
"tit">Mathematical Functions
</title>
39 <filename>/text/scalc/
01/
04060106.xhp
</filename>
43 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3147124"><bookmark_value>mathematical functions
</bookmark_value>
44 <bookmark_value>Function Wizard; mathematical
</bookmark_value>
45 <bookmark_value>functions; mathematical functions
</bookmark_value>
46 <bookmark_value>trigonometric functions
</bookmark_value>
48 <paragraph xml-lang=
"en-US" id=
"hd_id3147124" role=
"heading" level=
"1" l10n=
"U" oldref=
"1">Mathematical Functions
</paragraph>
49 <paragraph xml-lang=
"en-US" id=
"par_id3154943" role=
"paragraph" l10n=
"CHG" oldref=
"2"><variable id=
"mathematiktext">This category contains the
<emph>Mathematical
</emph> functions for Calc.
50 </variable> To open the
<emph>Function Wizard
</emph>, choose
<link href=
"text/scalc/01/04060000.xhp" name=
"Insert - Function"><emph>Insert - Function
</emph></link>.
</paragraph>
52 <section id=
"Section1">
53 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3146944"><bookmark_value>ABS function
</bookmark_value>
54 <bookmark_value>absolute values
</bookmark_value>
55 <bookmark_value>values;absolute
</bookmark_value>
56 </bookmark><comment>mw added two entries
</comment>
57 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_ABS" id=
"bm_id3150695" localize=
"false"/>
58 <paragraph xml-lang=
"en-US" id=
"hd_id3146944" role=
"heading" level=
"2" l10n=
"U"
59 oldref=
"33">ABS
</paragraph>
60 <paragraph xml-lang=
"en-US" id=
"par_id3154546" role=
"paragraph" l10n=
"U" oldref=
"34"><ahelp hid=
"HID_FUNC_ABS">Returns the absolute value of a number.
</ahelp></paragraph>
61 <paragraph xml-lang=
"en-US" id=
"hd_id3154843" role=
"heading" level=
"3" l10n=
"U"
62 oldref=
"35">Syntax
</paragraph>
63 <paragraph xml-lang=
"en-US" id=
"par_id3147475" role=
"code" l10n=
"U" oldref=
"36">ABS(Number)
</paragraph>
64 <paragraph xml-lang=
"en-US" id=
"par_id3148438" role=
"paragraph" l10n=
"CHG" oldref=
"37"><emph>Number
</emph> is the number whose absolute value is to be calculated. The absolute value of a number is its value without the +/- sign.
</paragraph>
65 <paragraph xml-lang=
"en-US" id=
"hd_id3155823" role=
"heading" level=
"3" l10n=
"U"
66 oldref=
"38">Example
</paragraph>
67 <paragraph xml-lang=
"en-US" id=
"par_id3152787" role=
"paragraph" l10n=
"CHG" oldref=
"39">
68 <item type=
"input">=ABS(-
56)
</item> returns
56.
</paragraph>
69 <paragraph xml-lang=
"en-US" id=
"par_id3148752" role=
"paragraph" l10n=
"CHG" oldref=
"40">
70 <item type=
"input">=ABS(
12)
</item> returns
12.
</paragraph>
71 <paragraph xml-lang=
"en-US" id=
"par_id320139" role=
"paragraph" l10n=
"NEW">
72 <item type=
"input">=ABS(
0)
</item> returns
0.
<comment>see also SIGN
</comment></paragraph>
74 <section id=
"Section62">
75 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3150896"><bookmark_value>COUNTBLANK function
</bookmark_value>
76 <bookmark_value>counting;empty cells
</bookmark_value>
77 <bookmark_value>empty cells;counting
</bookmark_value>
78 </bookmark><comment>mw added two entries
</comment>
79 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_ANZAHLLEEREZELLEN" id=
"bm_id3149730" localize=
"false"/>
80 <paragraph xml-lang=
"en-US" id=
"hd_id3150896" role=
"heading" level=
"2" l10n=
"U"
81 oldref=
"42">COUNTBLANK
</paragraph>
82 <paragraph xml-lang=
"en-US" id=
"par_id3155260" role=
"paragraph" l10n=
"CHG" oldref=
"43"><ahelp hid=
"HID_FUNC_ANZAHLLEEREZELLEN">Returns the number of empty cells.
</ahelp></paragraph>
83 <paragraph xml-lang=
"en-US" id=
"hd_id3145144" role=
"heading" level=
"3" l10n=
"U"
84 oldref=
"44">Syntax
</paragraph>
85 <paragraph xml-lang=
"en-US" id=
"par_id3153931" role=
"code" l10n=
"U" oldref=
"45">COUNTBLANK(Range)
</paragraph>
86 <paragraph xml-lang=
"en-US" id=
"par_id3149512" role=
"paragraph" l10n=
"CHG" oldref=
"46"> Returns the number of empty cells in the cell range
<emph>Range
</emph>.
</paragraph>
87 <paragraph xml-lang=
"en-US" id=
"hd_id3146139" role=
"heading" level=
"3" l10n=
"U"
88 oldref=
"47">Example
</paragraph>
89 <paragraph xml-lang=
"en-US" id=
"par_id3148586" role=
"paragraph" l10n=
"CHG" oldref=
"48">
90 <item type=
"input">=COUNTBLANK(A1:B2)
</item> returns
4 if cells A1, A2, B1, and B2 are all empty.
</paragraph><comment>see also COUNTIF
</comment>
92 <section id=
"Section61">
93 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3153114"><bookmark_value>ACOS function
</bookmark_value>
95 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_ARCCOS" id=
"bm_id3155952" localize=
"false"/>
96 <paragraph xml-lang=
"en-US" id=
"hd_id3153114" role=
"heading" level=
"2" l10n=
"U"
97 oldref=
"50">ACOS
</paragraph>
98 <paragraph xml-lang=
"en-US" id=
"par_id3145163" role=
"paragraph" l10n=
"CHG" oldref=
"51"><ahelp hid=
"HID_FUNC_ARCCOS">Returns the inverse trigonometric cosine of a number.
</ahelp></paragraph>
99 <paragraph xml-lang=
"en-US" id=
"hd_id3153565" role=
"heading" level=
"3" l10n=
"U"
100 oldref=
"52">Syntax
</paragraph>
101 <paragraph xml-lang=
"en-US" id=
"par_id3150020" role=
"code" l10n=
"U" oldref=
"53">ACOS(Number)
</paragraph>
102 <paragraph xml-lang=
"en-US" id=
"par_id3159134" role=
"paragraph" l10n=
"CHG" oldref=
"54"> This function returns the inverse trigonometric cosine of
<emph>Number
</emph>, that is the angle (in radians) whose cosine is Number. The angle returned is between
0 and PI.
</paragraph>
103 <paragraph xml-lang=
"en-US" id=
"par_id679647" role=
"paragraph" l10n=
"NEW">To return the angle in degrees, use the DEGREES function.
</paragraph>
104 <paragraph xml-lang=
"en-US" id=
"hd_id3149882" role=
"heading" level=
"3" l10n=
"U"
105 oldref=
"55">Example
</paragraph>
106 <paragraph xml-lang=
"en-US" id=
"par_id3150128" role=
"paragraph" l10n=
"CHG" oldref=
"56">
107 <item type=
"input">=ACOS(-
1)
</item> returns
3.14159265358979 (PI radians)
</paragraph>
108 <paragraph xml-lang=
"en-US" id=
"par_id8792382" role=
"paragraph" l10n=
"NEW">
109 <item type=
"input">=DEGREES(ACOS(
0.5))
</item> returns
60. The cosine of
60 degrees is
0.5.
</paragraph><comment>see also COS, SIN, TAN, COT, ASIN, ATAN, ATAN2, ACOT
</comment>
111 <section id=
"Section60">
112 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3145355"><bookmark_value>ACOSH function
</bookmark_value>
114 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_ARCOSHYP" id=
"bm_id3148386" localize=
"false"/>
115 <paragraph xml-lang=
"en-US" id=
"hd_id3145355" role=
"heading" level=
"2" l10n=
"U"
116 oldref=
"60">ACOSH
</paragraph>
117 <paragraph xml-lang=
"en-US" id=
"par_id3157993" role=
"paragraph" l10n=
"U" oldref=
"61"><ahelp hid=
"HID_FUNC_ARCOSHYP">Returns the inverse hyperbolic cosine of a number.
</ahelp></paragraph>
118 <paragraph xml-lang=
"en-US" id=
"hd_id3145295" role=
"heading" level=
"3" l10n=
"U"
119 oldref=
"62">Syntax
</paragraph>
120 <paragraph xml-lang=
"en-US" id=
"par_id3151017" role=
"code" l10n=
"U" oldref=
"63">ACOSH(Number)
</paragraph>
121 <paragraph xml-lang=
"en-US" id=
"par_id3149000" role=
"paragraph" l10n=
"CHG" oldref=
"64"> This function returns the inverse hyperbolic cosine of
<emph>Number
</emph>, that is the number whose hyperbolic cosine is Number.
</paragraph>
122 <paragraph xml-lang=
"en-US" id=
"par_id6393932" role=
"paragraph" l10n=
"NEW"> Number must be greater than or equal to
1.
</paragraph>
123 <paragraph xml-lang=
"en-US" id=
"hd_id3150566" role=
"heading" level=
"3" l10n=
"U"
124 oldref=
"65">Example
</paragraph>
125 <paragraph xml-lang=
"en-US" id=
"par_id3145629" role=
"paragraph" l10n=
"CHG" oldref=
"66">
126 <item type=
"input">=ACOSH(
1)
</item> returns
0.
</paragraph>
127 <paragraph xml-lang=
"en-US" id=
"par_id951567" role=
"paragraph" l10n=
"NEW">
128 <item type=
"input">=ACOSH(COSH(
4))
</item> returns
4.
</paragraph><comment>see also ASINH, ATANH, ACOTH, COSH, SINH, TANH, COTH
</comment>
130 <section id=
"Section59">
131 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3149027"><bookmark_value>ACOT function
</bookmark_value>
133 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_ARCCOT" id=
"bm_id3154634" localize=
"false"/>
134 <paragraph xml-lang=
"en-US" id=
"hd_id3149027" role=
"heading" level=
"2" l10n=
"U"
135 oldref=
"70">ACOT
</paragraph>
136 <paragraph xml-lang=
"en-US" id=
"par_id3155818" role=
"paragraph" l10n=
"CHG" oldref=
"71"><ahelp hid=
"HID_FUNC_ARCCOT">Returns the inverse cotangent (the arccotangent) of the given number.
</ahelp></paragraph>
137 <paragraph xml-lang=
"en-US" id=
"hd_id3153225" role=
"heading" level=
"3" l10n=
"U"
138 oldref=
"72">Syntax
</paragraph>
139 <paragraph xml-lang=
"en-US" id=
"par_id3158419" role=
"code" l10n=
"U" oldref=
"73">ACOT(Number)
</paragraph>
140 <paragraph xml-lang=
"en-US" id=
"par_id3154948" role=
"paragraph" l10n=
"CHG" oldref=
"74"> This function returns the inverse trigonometric cotangent of
<emph>Number
</emph>, that is the angle (in radians) whose cotangent is Number. The angle returned is between
0 and PI.
</paragraph>
141 <paragraph xml-lang=
"en-US" id=
"par_id5834528" role=
"paragraph" l10n=
"NEW">To return the angle in degrees, use the DEGREES function.
</paragraph>
142 <paragraph xml-lang=
"en-US" id=
"hd_id3147538" role=
"heading" level=
"3" l10n=
"U"
143 oldref=
"75">Example
</paragraph>
144 <paragraph xml-lang=
"en-US" id=
"par_id3155375" role=
"paragraph" l10n=
"CHG" oldref=
"76">
145 <item type=
"input">=ACOT(
1)
</item> returns
0.785398163397448 (PI/
4 radians).
</paragraph>
146 <paragraph xml-lang=
"en-US" id=
"par_id8589434" role=
"paragraph" l10n=
"NEW">
147 <item type=
"input">=DEGREES(ACOT(
1))
</item> returns
45. The tangent of
45 degrees is
1.
</paragraph><comment>see also COS, SIN, TAN, COT, ACOS, ASIN, ATAN, ATAN2
</comment>
149 <section id=
"Section58">
150 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3148426"><bookmark_value>ACOTH function
</bookmark_value>
152 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_ARCOTHYP" id=
"bm_id3149777" localize=
"false"/>
153 <paragraph xml-lang=
"en-US" id=
"hd_id3148426" role=
"heading" level=
"2" l10n=
"U"
154 oldref=
"80">ACOTH
</paragraph>
155 <paragraph xml-lang=
"en-US" id=
"par_id3147478" role=
"paragraph" l10n=
"U" oldref=
"81"><ahelp hid=
"HID_FUNC_ARCOTHYP">Returns the inverse hyperbolic cotangent of the given number.
</ahelp></paragraph>
156 <paragraph xml-lang=
"en-US" id=
"hd_id3152585" role=
"heading" level=
"3" l10n=
"U"
157 oldref=
"82">Syntax
</paragraph>
158 <paragraph xml-lang=
"en-US" id=
"par_id3147172" role=
"code" l10n=
"U" oldref=
"83">ACOTH(Number)
</paragraph>
159 <paragraph xml-lang=
"en-US" id=
"par_id3146155" role=
"paragraph" l10n=
"CHG" oldref=
"84"> This function returns the inverse hyperbolic cotangent of
<emph>Number
</emph>, that is the number whose hyperbolic cotangent is Number.
</paragraph>
160 <paragraph xml-lang=
"en-US" id=
"par_id5818659" role=
"paragraph" l10n=
"NEW">An error results if Number is between -
1 and
1 inclusive.
</paragraph>
161 <paragraph xml-lang=
"en-US" id=
"hd_id3083452" role=
"heading" level=
"3" l10n=
"U"
162 oldref=
"85">Example
</paragraph>
163 <paragraph xml-lang=
"en-US" id=
"par_id3150608" role=
"paragraph" l10n=
"CHG" oldref=
"86">
164 <item type=
"input">=ACOTH(
1.1)
</item> returns inverse hyperbolic cotangent of
1.1, approximately
1.52226.
</paragraph><comment>see also ACOSH, ASINH, ATANH, COSH, SINH, TANH, COTH
</comment>
166 <section id=
"Section57">
167 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3145084"><bookmark_value>ASIN function
</bookmark_value>
169 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_ARCSIN" id=
"bm_id3149280" localize=
"false"/>
170 <paragraph xml-lang=
"en-US" id=
"hd_id3145084" role=
"heading" level=
"2" l10n=
"U"
171 oldref=
"90">ASIN
</paragraph>
172 <paragraph xml-lang=
"en-US" id=
"par_id3156296" role=
"paragraph" l10n=
"CHG" oldref=
"91"><ahelp hid=
"HID_FUNC_ARCSIN">Returns the inverse trigonometric sine of a number.
</ahelp></paragraph>
173 <paragraph xml-lang=
"en-US" id=
"hd_id3149716" role=
"heading" level=
"3" l10n=
"U"
174 oldref=
"92">Syntax
</paragraph>
175 <paragraph xml-lang=
"en-US" id=
"par_id3156305" role=
"code" l10n=
"U" oldref=
"93">ASIN(Number)
</paragraph>
176 <paragraph xml-lang=
"en-US" id=
"par_id3150964" role=
"paragraph" l10n=
"CHG" oldref=
"94"> This function returns the inverse trigonometric sine of
<emph>Number
</emph>, that is the angle (in radians) whose sine is Number. The angle returned is between -PI/
2 and +PI/
2.
</paragraph>
177 <paragraph xml-lang=
"en-US" id=
"par_id203863" role=
"paragraph" l10n=
"NEW">To return the angle in degrees, use the DEGREES function.
</paragraph>
178 <paragraph xml-lang=
"en-US" id=
"hd_id3149448" role=
"heading" level=
"3" l10n=
"U"
179 oldref=
"95">Example
</paragraph>
180 <paragraph xml-lang=
"en-US" id=
"par_id3156100" role=
"paragraph" l10n=
"CHG" oldref=
"96">
181 <item type=
"input">=ASIN(
0)
</item> returns
0.
</paragraph>
182 <paragraph xml-lang=
"en-US" id=
"par_id6853846" role=
"paragraph" l10n=
"NEW">
183 <item type=
"input">=ASIN(
1)
</item> returns
1.5707963267949 (PI/
2 radians).
</paragraph>
184 <paragraph xml-lang=
"en-US" id=
"par_id8772240" role=
"paragraph" l10n=
"NEW">
185 <item type=
"input">=DEGREES(ASIN(
0.5))
</item> returns
30. The sine of
30 degrees is
0.5.
</paragraph><comment>see also COS, SIN, TAN, COT, ACOS, ATAN, ATAN2, ACOT
</comment>
187 <section id=
"Section56">
188 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3151266"><bookmark_value>ASINH function
</bookmark_value>
190 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_ARSINHYP" id=
"bm_id3145206" localize=
"false"/>
191 <paragraph xml-lang=
"en-US" id=
"hd_id3151266" role=
"heading" level=
"2" l10n=
"U"
192 oldref=
"100">ASINH
</paragraph>
193 <paragraph xml-lang=
"en-US" id=
"par_id3147077" role=
"paragraph" l10n=
"U" oldref=
"101"><ahelp hid=
"HID_FUNC_ARSINHYP">Returns the inverse hyperbolic sine of a number.
</ahelp></paragraph>
194 <paragraph xml-lang=
"en-US" id=
"hd_id3150763" role=
"heading" level=
"3" l10n=
"U"
195 oldref=
"102">Syntax
</paragraph>
196 <paragraph xml-lang=
"en-US" id=
"par_id3150882" role=
"code" l10n=
"U" oldref=
"103">ASINH(Number)
</paragraph>
197 <paragraph xml-lang=
"en-US" id=
"par_id3147621" role=
"paragraph" l10n=
"CHG" oldref=
"104"> This function returns the inverse hyperbolic sine of
<emph>Number
</emph>, that is the number whose hyperbolic sine is Number.
</paragraph>
198 <paragraph xml-lang=
"en-US" id=
"hd_id3153212" role=
"heading" level=
"3" l10n=
"U"
199 oldref=
"105">Example
</paragraph>
200 <paragraph xml-lang=
"en-US" id=
"par_id3156120" role=
"paragraph" l10n=
"CHG" oldref=
"106">
201 <item type=
"input">=ASINH(-
90)
</item> returns approximately -
5.1929877.
</paragraph>
202 <paragraph xml-lang=
"en-US" id=
"par_id4808496" role=
"paragraph" l10n=
"NEW">
203 <item type=
"input">=ASINH(SINH(
4))
</item> returns
4.
</paragraph><comment>see also ACOSH, ATANH, ACOTH,
204 COSH, SINH, TANH, COTH
</comment>
206 <section id=
"Section55">
207 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3155996"><bookmark_value>ATAN function
</bookmark_value>
209 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_ARCTAN" id=
"bm_id3154743" localize=
"false"/>
210 <paragraph xml-lang=
"en-US" id=
"hd_id3155996" role=
"heading" level=
"2" l10n=
"U"
211 oldref=
"110">ATAN
</paragraph>
212 <paragraph xml-lang=
"en-US" id=
"par_id3149985" role=
"paragraph" l10n=
"CHG" oldref=
"111"><ahelp hid=
"HID_FUNC_ARCTAN">Returns the inverse trigonometric tangent of a number.
</ahelp></paragraph>
213 <paragraph xml-lang=
"en-US" id=
"hd_id3151294" role=
"heading" level=
"3" l10n=
"U"
214 oldref=
"112">Syntax
</paragraph>
215 <paragraph xml-lang=
"en-US" id=
"par_id3150261" role=
"code" l10n=
"U" oldref=
"113">ATAN(Number)
</paragraph>
216 <paragraph xml-lang=
"en-US" id=
"par_id3147267" role=
"paragraph" l10n=
"CHG" oldref=
"114"> This function returns the inverse trigonometric tangent of
<emph>Number
</emph>, that is the angle (in radians) whose tangent is Number. The angle returned is between -PI/
2 and PI/
2.
</paragraph>
217 <paragraph xml-lang=
"en-US" id=
"par_id6293527" role=
"paragraph" l10n=
"NEW">To return the angle in degrees, use the DEGREES function.
</paragraph>
218 <paragraph xml-lang=
"en-US" id=
"hd_id3154054" role=
"heading" level=
"3" l10n=
"U"
219 oldref=
"115">Example
</paragraph>
220 <paragraph xml-lang=
"en-US" id=
"par_id3143229" role=
"paragraph" l10n=
"CHG" oldref=
"116">
221 <item type=
"input">=ATAN(
1)
</item> returns
0.785398163397448 (PI/
4 radians).
</paragraph>
222 <paragraph xml-lang=
"en-US" id=
"par_id8746299" role=
"paragraph" l10n=
"NEW">
223 <item type=
"input">=DEGREES(ATAN(
1))
</item> returns
45. The tangent of
45 degrees is
1.
</paragraph><comment>see also COS, SIN, TAN, COT,
224 ACOS, ASIN, ATAN2, ACOT
</comment>
226 <section id=
"Section54">
227 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3153983"><bookmark_value>ATAN2 function
</bookmark_value>
229 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_ARCTAN2" id=
"bm_id3159180" localize=
"false"/>
230 <paragraph xml-lang=
"en-US" id=
"hd_id3153983" role=
"heading" level=
"2" l10n=
"U"
231 oldref=
"120">ATAN2
</paragraph>
232 <paragraph xml-lang=
"en-US" id=
"par_id3154297" role=
"paragraph" l10n=
"CHG" oldref=
"121"><ahelp hid=
"HID_FUNC_ARCTAN2">Returns the inverse trigonometric tangent of the specified x and y coordinates.
</ahelp></paragraph>
233 <paragraph xml-lang=
"en-US" id=
"hd_id3149758" role=
"heading" level=
"3" l10n=
"U"
234 oldref=
"122">Syntax
</paragraph>
235 <paragraph xml-lang=
"en-US" id=
"par_id3156013" role=
"code" l10n=
"CHG" oldref=
"123">ATAN2(NumberX; NumberY)
</paragraph>
236 <paragraph xml-lang=
"en-US" id=
"par_id3151168" role=
"paragraph" l10n=
"CHG" oldref=
"124"><emph>NumberX
</emph> is the value of the x coordinate.
</paragraph>
237 <paragraph xml-lang=
"en-US" id=
"par_id3152798" role=
"paragraph" l10n=
"CHG" oldref=
"125"><emph>NumberY
</emph> is the value of the y coordinate.
</paragraph>
238 <paragraph xml-lang=
"en-US" id=
"par_id5036164" role=
"paragraph" l10n=
"NEW">ATAN2 returns the inverse trigonometric tangent, that is, the angle (in radians) between the x-axis and a line from point NumberX, NumberY to the origin. The angle returned is between -PI and PI.
</paragraph>
239 <paragraph xml-lang=
"en-US" id=
"par_id3001800" role=
"paragraph" l10n=
"NEW">To return the angle in degrees, use the DEGREES function.
</paragraph>
240 <paragraph xml-lang=
"en-US" id=
"hd_id3145663" role=
"heading" level=
"3" l10n=
"U"
241 oldref=
"126">Example
</paragraph>
242 <paragraph xml-lang=
"en-US" id=
"par_id3154692" role=
"paragraph" l10n=
"CHG" oldref=
"127">
243 <item type=
"input">=ATAN2(
20;
20)
</item> returns
0.785398163397448 (PI/
4 radians).
</paragraph>
244 <paragraph xml-lang=
"en-US" id=
"par_id1477095" role=
"paragraph" l10n=
"NEW">
245 <item type=
"input">=DEGREES(ATAN2(
12.3;
12.3))
</item> returns
45. The tangent of
45 degrees is
1.
</paragraph><comment>see also COS, SIN, TAN, COT,
246 ACOS, ASIN, ATAN, ACOT
</comment>
248 <section id=
"Section53">
249 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3155398"><bookmark_value>ATANH function
</bookmark_value>
251 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_ARTANHYP" id=
"bm_id3154939" localize=
"false"/>
252 <paragraph xml-lang=
"en-US" id=
"hd_id3155398" role=
"heading" level=
"2" l10n=
"U"
253 oldref=
"130">ATANH
</paragraph>
254 <paragraph xml-lang=
"en-US" id=
"par_id3148829" role=
"paragraph" l10n=
"U" oldref=
"131"><ahelp hid=
"HID_FUNC_ARTANHYP">Returns the inverse hyperbolic tangent of a number.
</ahelp></paragraph>
255 <paragraph xml-lang=
"en-US" id=
"hd_id3146997" role=
"heading" level=
"3" l10n=
"U"
256 oldref=
"132">Syntax
</paragraph>
257 <paragraph xml-lang=
"en-US" id=
"par_id3149912" role=
"code" l10n=
"U" oldref=
"133">ATANH(Number)
</paragraph>
258 <paragraph xml-lang=
"en-US" id=
"par_id3150521" role=
"paragraph" l10n=
"CHG" oldref=
"134"> This function returns the inverse hyperbolic tangent of
<emph>Number
</emph>, that is the number whose hyperbolic tangent is Number.
</paragraph>
259 <paragraph xml-lang=
"en-US" id=
"par_id9357280" role=
"paragraph" l10n=
"NEW"> Number must obey the condition -
1 < number
< 1.
</paragraph>
260 <paragraph xml-lang=
"en-US" id=
"hd_id3148450" role=
"heading" level=
"3" l10n=
"U"
261 oldref=
"135">Example
</paragraph>
262 <paragraph xml-lang=
"en-US" id=
"par_id3145419" role=
"paragraph" l10n=
"CHG" oldref=
"136">
263 <item type=
"input">=ATANH(
0)
</item> returns
0.
</paragraph><comment>see also ACOSH, ASINH, ACOTH,
264 COSH, SINH, TANH, COTH
</comment>
266 <section id=
"Section52">
267 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3153062"><bookmark_value>COS function
</bookmark_value>
269 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_COS" id=
"bm_id3158408" localize=
"false"/>
270 <paragraph xml-lang=
"en-US" id=
"hd_id3153062" role=
"heading" level=
"2" l10n=
"U"
271 oldref=
"149">COS
</paragraph>
272 <paragraph xml-lang=
"en-US" id=
"par_id3148803" role=
"paragraph" l10n=
"CHG" oldref=
"150"><ahelp hid=
"HID_FUNC_COS">Returns the cosine of the given angle (in radians).
</ahelp></paragraph>
273 <paragraph xml-lang=
"en-US" id=
"hd_id3150779" role=
"heading" level=
"3" l10n=
"U"
274 oldref=
"151">Syntax
</paragraph>
275 <paragraph xml-lang=
"en-US" id=
"par_id3154213" role=
"code" l10n=
"U" oldref=
"152">COS(Number)
</paragraph>
276 <paragraph xml-lang=
"en-US" id=
"par_id3154285" role=
"paragraph" l10n=
"CHG" oldref=
"153"> Returns the (trigonometric) cosine of
<emph>Number
</emph>, the angle in radians.
</paragraph>
277 <paragraph xml-lang=
"en-US" id=
"par_id831019" role=
"paragraph" l10n=
"NEW">To return the cosine of an angle in degrees, use the RADIANS function.
</paragraph>
278 <paragraph xml-lang=
"en-US" id=
"hd_id3153579" role=
"heading" level=
"3" l10n=
"U"
279 oldref=
"154">Examples
</paragraph>
280 <paragraph xml-lang=
"en-US" id=
"par_id3147240" role=
"paragraph" l10n=
"U" oldref=
"155">
281 <item type=
"input">=COS(PI()/
2)
</item> returns
0, the cosine of PI/
2 radians.
</paragraph>
282 <paragraph xml-lang=
"en-US" id=
"par_id3147516" role=
"paragraph" l10n=
"U" oldref=
"156">
283 <item type=
"input">=COS(RADIANS(
60))
</item> returns
0.5, the cosine of
60 degrees.
</paragraph><comment>see also SIN, TAN, COT,
284 ACOS, ASIN, ATAN, ATAN2, ACOT
</comment>
286 <section id=
"Section51">
287 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3154277"><bookmark_value>COSH function
</bookmark_value>
289 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_COSHYP" id=
"bm_id3149158" localize=
"false"/>
290 <paragraph xml-lang=
"en-US" id=
"hd_id3154277" role=
"heading" level=
"2" l10n=
"U"
291 oldref=
"159">COSH
</paragraph>
292 <paragraph xml-lang=
"en-US" id=
"par_id3146946" role=
"paragraph" l10n=
"U" oldref=
"160"><ahelp hid=
"HID_FUNC_COSHYP">Returns the hyperbolic cosine of a number.
</ahelp></paragraph>
293 <paragraph xml-lang=
"en-US" id=
"hd_id3149792" role=
"heading" level=
"3" l10n=
"U"
294 oldref=
"161">Syntax
</paragraph>
295 <paragraph xml-lang=
"en-US" id=
"par_id3166440" role=
"code" l10n=
"U" oldref=
"162">COSH(Number)
</paragraph>
296 <paragraph xml-lang=
"en-US" id=
"par_id3150710" role=
"paragraph" l10n=
"CHG" oldref=
"163">Returns the hyperbolic cosine of
<emph>Number
</emph>.
</paragraph>
297 <paragraph xml-lang=
"en-US" id=
"hd_id3153234" role=
"heading" level=
"3" l10n=
"U"
298 oldref=
"164">Example
</paragraph>
299 <paragraph xml-lang=
"en-US" id=
"par_id3154099" role=
"paragraph" l10n=
"CHG" oldref=
"165">
300 <item type=
"input">=COSH(
0)
</item> returns
1, the hyperbolic cosine of
0.
</paragraph><comment>see also SINH, TANH, COTH,
301 ACOSH, ASINH, ATANH, ACOTH,
</comment>
303 <section id=
"Section50">
304 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3152888"><bookmark_value>COT function
</bookmark_value>
306 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_COT" id=
"bm_id3153392" localize=
"false"/>
307 <paragraph xml-lang=
"en-US" id=
"hd_id3152888" role=
"heading" level=
"2" l10n=
"U"
308 oldref=
"169">COT
</paragraph>
309 <paragraph xml-lang=
"en-US" id=
"par_id3153679" role=
"paragraph" l10n=
"CHG" oldref=
"170"><ahelp hid=
"HID_FUNC_COT">Returns the cotangent of the given angle (in radians).
</ahelp></paragraph>
310 <paragraph xml-lang=
"en-US" id=
"hd_id3152943" role=
"heading" level=
"3" l10n=
"U"
311 oldref=
"171">Syntax
</paragraph>
312 <paragraph xml-lang=
"en-US" id=
"par_id3154856" role=
"code" l10n=
"U" oldref=
"172">COT(Number)
</paragraph>
313 <paragraph xml-lang=
"en-US" id=
"par_id3149969" role=
"paragraph" l10n=
"CHG" oldref=
"173"> Returns the (trigonometric) cotangent of
<emph>Number
</emph>, the angle in radians.
</paragraph>
314 <paragraph xml-lang=
"en-US" id=
"par_id3444624" role=
"paragraph" l10n=
"NEW">To return the cotangent of an angle in degrees, use the RADIANS function.
</paragraph>
315 <paragraph xml-lang=
"en-US" id=
"par_id6814477" role=
"paragraph" l10n=
"NEW">The cotangent of an angle is equivalent to
1 divided by the tangent of that angle.
</paragraph>
316 <paragraph xml-lang=
"en-US" id=
"hd_id3149800" role=
"heading" level=
"3" l10n=
"U"
317 oldref=
"174">Examples:
</paragraph>
318 <paragraph xml-lang=
"en-US" id=
"par_id3148616" role=
"paragraph" l10n=
"CHG" oldref=
"175">
319 <item type=
"input">=COT(PI()/
4)
</item> returns
1, the cotangent of PI/
4 radians.
</paragraph>
320 <paragraph xml-lang=
"en-US" id=
"par_id3148986" role=
"paragraph" l10n=
"CHG" oldref=
"176">
321 <item type=
"input">=COT(RADIANS(
45))
</item> returns
1, the cotangent of
45 degrees.
</paragraph><comment>see also COS, SIN, TAN,
322 ACOS, ASIN, ATAN, ATAN2, ACOT
</comment>
324 <section id=
"Section49">
325 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3154337"><bookmark_value>COTH function
</bookmark_value>
327 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_COTHYP" id=
"bm_id3148650" localize=
"false"/>
328 <paragraph xml-lang=
"en-US" id=
"hd_id3154337" role=
"heading" level=
"2" l10n=
"U"
329 oldref=
"178">COTH
</paragraph>
330 <paragraph xml-lang=
"en-US" id=
"par_id3149419" role=
"paragraph" l10n=
"U" oldref=
"179"><ahelp hid=
"HID_FUNC_COTHYP">Returns the hyperbolic cotangent of a given number (angle).
</ahelp></paragraph>
331 <paragraph xml-lang=
"en-US" id=
"hd_id3149242" role=
"heading" level=
"3" l10n=
"U"
332 oldref=
"180">Syntax
</paragraph>
333 <paragraph xml-lang=
"en-US" id=
"par_id3143280" role=
"code" l10n=
"U" oldref=
"181">COTH(Number)
</paragraph>
334 <paragraph xml-lang=
"en-US" id=
"par_id3154799" role=
"paragraph" l10n=
"CHG" oldref=
"182"> Returns the hyperbolic cotangent of
<emph>Number
</emph>.
</paragraph>
335 <paragraph xml-lang=
"en-US" id=
"hd_id3155422" role=
"heading" level=
"3" l10n=
"U"
336 oldref=
"183">Example
</paragraph>
337 <paragraph xml-lang=
"en-US" id=
"par_id3144754" role=
"paragraph" l10n=
"CHG" oldref=
"184">
338 <item type=
"input">=COTH(
1)
</item> returns the hyperbolic cotangent of
1, approximately
1.3130.
</paragraph><comment>see also COSH, SINH, TANH,
339 ACOSH, ASINH, ATANH, ACOTH,
</comment>
341 <section id=
"Section48">
342 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3145314"><bookmark_value>DEGREES function
</bookmark_value>
343 <bookmark_value>converting;radians, into degrees
</bookmark_value>
344 </bookmark><comment>mw added one entry
</comment>
345 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_DEG" id=
"bm_id3153946" localize=
"false"/>
346 <paragraph xml-lang=
"en-US" id=
"hd_id3145314" role=
"heading" level=
"2" l10n=
"U"
347 oldref=
"188">DEGREES
</paragraph>
348 <paragraph xml-lang=
"en-US" id=
"par_id3149939" role=
"paragraph" l10n=
"U" oldref=
"189"><ahelp hid=
"HID_FUNC_DEG">Converts radians into degrees.
</ahelp></paragraph>
349 <paragraph xml-lang=
"en-US" id=
"hd_id3150623" role=
"heading" level=
"3" l10n=
"U"
350 oldref=
"190">Syntax
</paragraph>
351 <paragraph xml-lang=
"en-US" id=
"par_id3145600" role=
"code" l10n=
"CHG" oldref=
"191">DEGREES(Number)
</paragraph>
352 <paragraph xml-lang=
"en-US" id=
"par_id3149484" role=
"paragraph" l10n=
"CHG" oldref=
"192"><emph>Number
</emph> is the angle in radians to be converted to degrees.
</paragraph>
353 <paragraph xml-lang=
"en-US" id=
"hd_id3669545" role=
"heading" level=
"3" l10n=
"NEW">Example
</paragraph>
354 <paragraph xml-lang=
"en-US" id=
"par_id3459578" role=
"paragraph" l10n=
"NEW">
355 <item type=
"input">=DEGREES(PI())
</item> returns
180 degrees.
</paragraph><comment>see also RADIANS
</comment>
357 <section id=
"Section47">
358 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3148698"><bookmark_value>EXP function
</bookmark_value>
360 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_EXP" id=
"bm_id3154625" localize=
"false"/>
361 <paragraph xml-lang=
"en-US" id=
"hd_id3148698" role=
"heading" level=
"2" l10n=
"U"
362 oldref=
"198">EXP
</paragraph>
363 <paragraph xml-lang=
"en-US" id=
"par_id3150592" role=
"paragraph" l10n=
"CHG" oldref=
"199"><ahelp hid=
"HID_FUNC_EXP">Returns e raised to the power of a number.
</ahelp> The constant e has a value of approximately
2.71828182845904.
</paragraph>
364 <paragraph xml-lang=
"en-US" id=
"hd_id3150351" role=
"heading" level=
"3" l10n=
"U"
365 oldref=
"200">Syntax
</paragraph>
366 <paragraph xml-lang=
"en-US" id=
"par_id3146786" role=
"code" l10n=
"U" oldref=
"201">EXP(Number)
</paragraph>
367 <paragraph xml-lang=
"en-US" id=
"par_id3155608" role=
"paragraph" l10n=
"U" oldref=
"202"><emph>Number
</emph> is the power to which e is to be raised.
</paragraph>
368 <paragraph xml-lang=
"en-US" id=
"hd_id3154418" role=
"heading" level=
"3" l10n=
"U"
369 oldref=
"203">Example
</paragraph>
370 <paragraph xml-lang=
"en-US" id=
"par_id3156340" role=
"paragraph" l10n=
"CHG" oldref=
"204">
371 <item type=
"input">=EXP(
1)
</item> returns
2.71828182845904, the mathematical constant e to Calc's accuracy.
</paragraph><comment>see also POWER, LN,
</comment>
373 <section id=
"Section46">
374 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3145781"><bookmark_value>FACT function
</bookmark_value>
375 <bookmark_value>factorials;numbers
</bookmark_value>
376 </bookmark><comment>mw added one entry
</comment>
377 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_FAKULTAET" id=
"bm_id3153886" localize=
"false"/>
378 <paragraph xml-lang=
"en-US" id=
"hd_id3145781" role=
"heading" level=
"2" l10n=
"U"
379 oldref=
"208">FACT
</paragraph>
380 <paragraph xml-lang=
"en-US" id=
"par_id3151109" role=
"paragraph" l10n=
"CHG" oldref=
"209"><ahelp hid=
"HID_FUNC_FAKULTAET">Returns the factorial of a number.
</ahelp></paragraph>
381 <paragraph xml-lang=
"en-US" id=
"hd_id3146902" role=
"heading" level=
"3" l10n=
"U"
382 oldref=
"210">Syntax
</paragraph>
383 <paragraph xml-lang=
"en-US" id=
"par_id3154661" role=
"code" l10n=
"U" oldref=
"211">FACT(Number)
</paragraph>
384 <paragraph xml-lang=
"en-US" id=
"par_id3152952" role=
"paragraph" l10n=
"CHG" oldref=
"212"> Returns Number!, the factorial of
<emph>Number
</emph>, calculated as
1*
2*
3*
4* ... * Number.
</paragraph>
385 <paragraph xml-lang=
"en-US" id=
"par_id3834650" role=
"paragraph" l10n=
"NEW">=FACT(
0) returns
1 by definition.
</paragraph>
386 <paragraph xml-lang=
"en-US" id=
"par_id8429517" role=
"paragraph" l10n=
"NEW">The factorial of a negative number returns the
"invalid argument" error.
</paragraph>
387 <paragraph xml-lang=
"en-US" id=
"hd_id3154569" role=
"heading" level=
"3" l10n=
"U"
388 oldref=
"213">Example
</paragraph>
389 <paragraph xml-lang=
"en-US" id=
"par_id3154476" role=
"paragraph" l10n=
"CHG" oldref=
"216">
390 <item type=
"input">=FACT(
3)
</item> returns
6.
</paragraph>
391 <paragraph xml-lang=
"en-US" id=
"par_id3147525" role=
"paragraph" l10n=
"CHG" oldref=
"214">
392 <item type=
"input">=FACT(
0)
</item> returns
1.
</paragraph><comment>see also FACTDOUBLE, MULTINOMIAL, PRODUCT
</comment>
394 <section id=
"Section45">
395 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3159084"><bookmark_value>INT function
</bookmark_value>
396 <bookmark_value>numbers;rounding down to next integer
</bookmark_value>
397 <bookmark_value>rounding;down to next integer
</bookmark_value>
398 </bookmark><comment>mw added two entries
</comment>
399 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_GANZZAHL" id=
"bm_id3151311" localize=
"false"/>
400 <paragraph xml-lang=
"en-US" id=
"hd_id3159084" role=
"heading" level=
"2" l10n=
"U"
401 oldref=
"218">INT
</paragraph>
402 <paragraph xml-lang=
"en-US" id=
"par_id3158441" role=
"paragraph" l10n=
"U" oldref=
"219"><ahelp hid=
"HID_FUNC_GANZZAHL">Rounds a number down to the nearest integer.
</ahelp></paragraph>
403 <paragraph xml-lang=
"en-US" id=
"hd_id3146132" role=
"heading" level=
"3" l10n=
"U"
404 oldref=
"220">Syntax
</paragraph>
405 <paragraph xml-lang=
"en-US" id=
"par_id3156146" role=
"code" l10n=
"U" oldref=
"221">INT(Number)
</paragraph>
406 <paragraph xml-lang=
"en-US" id=
"par_id3154117" role=
"paragraph" l10n=
"CHG" oldref=
"222">Returns
<emph>Number
</emph> rounded down to the nearest integer.
</paragraph>
407 <paragraph xml-lang=
"en-US" id=
"par_id153508" role=
"paragraph" l10n=
"NEW">Negative numbers round down to the integer below.
</paragraph>
408 <paragraph xml-lang=
"en-US" id=
"hd_id3155118" role=
"heading" level=
"3" l10n=
"U"
409 oldref=
"223">Example
</paragraph>
410 <paragraph xml-lang=
"en-US" id=
"par_id3156267" role=
"paragraph" l10n=
"CHG" oldref=
"224">
411 <item type=
"input">=INT(
5.7)
</item> returns
5.
</paragraph>
412 <paragraph xml-lang=
"en-US" id=
"par_id3147323" role=
"paragraph" l10n=
"CHG" oldref=
"225">
413 <item type=
"input">=INT(-
1.3)
</item> returns -
2.
</paragraph><comment>see also TRUNC, ROUND, ROUNDDOWN, ROUNDUP,
414 CEILING, FLOOR, EVEN, ODD, MROUND,
</comment>
416 <section id=
"Section44">
417 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3150938"><bookmark_value>EVEN function
</bookmark_value>
418 <bookmark_value>numbers;rounding up/down to even integers
</bookmark_value>
419 <bookmark_value>rounding;up/down to even integers
</bookmark_value>
420 </bookmark><comment>mw added two entries
</comment>
421 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_GERADE" id=
"bm_id3150949" localize=
"false"/>
422 <paragraph xml-lang=
"en-US" id=
"hd_id3150938" role=
"heading" level=
"2" l10n=
"U"
423 oldref=
"227">EVEN
</paragraph>
424 <paragraph xml-lang=
"en-US" id=
"par_id3149988" role=
"paragraph" l10n=
"CHG" oldref=
"228"><ahelp hid=
"HID_FUNC_GERADE">Rounds a positive number up to the next even integer and a negative number down to the next even integer.
</ahelp></paragraph>
425 <paragraph xml-lang=
"en-US" id=
"hd_id3148401" role=
"heading" level=
"3" l10n=
"U"
426 oldref=
"229">Syntax
</paragraph>
427 <paragraph xml-lang=
"en-US" id=
"par_id3150830" role=
"code" l10n=
"U" oldref=
"230">EVEN(Number)
</paragraph>
428 <paragraph xml-lang=
"en-US" id=
"par_id3153350" role=
"paragraph" l10n=
"CHG" oldref=
"231"> Returns
<emph>Number
</emph> rounded to the next even integer up, away from zero.
</paragraph>
429 <paragraph xml-lang=
"en-US" id=
"hd_id3155508" role=
"heading" level=
"3" l10n=
"U"
430 oldref=
"232">Examples
</paragraph>
431 <paragraph xml-lang=
"en-US" id=
"par_id3154361" role=
"paragraph" l10n=
"CHG" oldref=
"233">
432 <item type=
"input">=EVEN(
2.3)
</item> returns
4.
</paragraph>
433 <paragraph xml-lang=
"en-US" id=
"par_id8477736" role=
"paragraph" l10n=
"NEW">
434 <item type=
"input">=EVEN(
2)
</item> returns
2.
</paragraph>
435 <paragraph xml-lang=
"en-US" id=
"par_id159611" role=
"paragraph" l10n=
"NEW">
436 <item type=
"input">=EVEN(
0)
</item> returns
0.
</paragraph>
437 <paragraph xml-lang=
"en-US" id=
"par_id6097598" role=
"paragraph" l10n=
"NEW">
438 <item type=
"input">=EVEN(-
0.5)
</item> returns -
2.
</paragraph><comment>see also CEILING, FLOOR, ODD, MROUND,
439 INT, TRUNC, ROUND, ROUNDDOWN, ROUNDUP
</comment>
441 <section id=
"Section43">
442 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3147356"><bookmark_value>GCD function
</bookmark_value>
443 <bookmark_value>greatest common divisor
</bookmark_value>
444 </bookmark><comment>mw added one entry
</comment>
445 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_GGT" id=
"bm_id3149737" localize=
"false"/>
446 <paragraph xml-lang=
"en-US" id=
"hd_id3147356" role=
"heading" level=
"2" l10n=
"U"
447 oldref=
"237">GCD
</paragraph>
448 <paragraph xml-lang=
"en-US" id=
"par_id3152465" role=
"paragraph" l10n=
"U" oldref=
"238"><ahelp hid=
"HID_FUNC_GGT">Returns the greatest common divisor of two or more integers.
</ahelp></paragraph>
449 <paragraph xml-lang=
"en-US" id=
"par_id2769249" role=
"paragraph" l10n=
"NEW">The greatest common divisor is the positive largest integer which will divide, without remainder, each of the given integers.
</paragraph>
450 <paragraph xml-lang=
"en-US" id=
"hd_id3150643" role=
"heading" level=
"3" l10n=
"U"
451 oldref=
"239">Syntax
</paragraph>
452 <paragraph xml-lang=
"en-US" id=
"par_id3154524" role=
"code" l10n=
"U" oldref=
"240">GCD(Integer1; Integer2; ...; Integer30)
</paragraph>
453 <paragraph xml-lang=
"en-US" id=
"par_id3149340" role=
"paragraph" l10n=
"U" oldref=
"241"><emph>Integer1 To
30</emph> are up to
30 integers whose greatest common divisor is to be calculated.
</paragraph>
454 <paragraph xml-lang=
"en-US" id=
"hd_id3147317" role=
"heading" level=
"3" l10n=
"U"
455 oldref=
"242">Example
</paragraph>
456 <paragraph xml-lang=
"en-US" id=
"par_id3151285" role=
"paragraph" l10n=
"CHG" oldref=
"243">
457 <item type=
"input">=GCD(
16;
32;
24)
</item>gives the result
8, because
8 is the largest number that can divide
16,
24 and
32 without a remainder.
</paragraph>
458 <paragraph xml-lang=
"en-US" id=
"par_id1604663" role=
"paragraph" l10n=
"NEW">
459 <item type=
"input">=GCD(B1:B3)
</item> where cells B1, B2, B3 contain
<item type=
"input">9</item>,
<item type=
"input">12</item>,
<item type=
"input">9</item> gives
3.
</paragraph>
461 <section id=
"Section42">
462 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3151221"><bookmark_value>GCD_ADD function
</bookmark_value>
464 <bookmark xml-lang=
"en-US" branch=
"hid/HID_AAI_FUNC_GCD" id=
"bm_id3147578" localize=
"false"/>
465 <paragraph xml-lang=
"en-US" id=
"hd_id3151221" role=
"heading" level=
"2" l10n=
"E"
466 oldref=
"677">GCD_ADD
</paragraph>
467 <paragraph xml-lang=
"en-US" id=
"par_id3153257" role=
"paragraph" l10n=
"U" oldref=
"678"><ahelp hid=
"HID_AAI_FUNC_GCD"> The result is the greatest common divisor of a list of numbers.
</ahelp></paragraph>
468 <embed href=
"text/scalc/01/04060102.xhp#ADD_note"/>
469 <paragraph xml-lang=
"en-US" id=
"hd_id3147548" role=
"heading" level=
"3" l10n=
"U"
470 oldref=
"679">Syntax
</paragraph>
471 <paragraph xml-lang=
"en-US" id=
"par_id3156205" role=
"code" l10n=
"U" oldref=
"680">GCD_ADD(Number(s))
</paragraph>
472 <paragraph xml-lang=
"en-US" id=
"par_id3145150" role=
"paragraph" l10n=
"U" oldref=
"681"><emph>Number(s)
</emph> is a list of up to
30 numbers.
</paragraph>
473 <paragraph xml-lang=
"en-US" id=
"hd_id3150239" role=
"heading" level=
"3" l10n=
"U"
474 oldref=
"682">Example
</paragraph>
475 <paragraph xml-lang=
"en-US" id=
"par_id3159192" role=
"paragraph" l10n=
"U" oldref=
"683">
476 <item type=
"input">=GCD_ADD(
5;
15;
25)
</item> returns
5.
</paragraph>
478 <section id=
"Section41">
479 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3156048"><bookmark_value>ISEVEN function
</bookmark_value>
480 <bookmark_value>even integers
</bookmark_value>
481 </bookmark><comment>mw added one entry
</comment>
482 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_ISTGERADE" id=
"bm_id3149430" localize=
"false"/>
483 <paragraph xml-lang=
"en-US" id=
"hd_id3156048" role=
"heading" level=
"2" l10n=
"U"
484 oldref=
"245">ISEVEN
<comment>link from Information cat
</comment></paragraph>
485 <paragraph xml-lang=
"en-US" id=
"par_id3149169" role=
"paragraph" l10n=
"U" oldref=
"246"><ahelp hid=
"HID_FUNC_ISTGERADE">Returns TRUE if the value is an even integer, or FALSE if the value is odd.
</ahelp></paragraph>
486 <paragraph xml-lang=
"en-US" id=
"hd_id3146928" role=
"heading" level=
"3" l10n=
"U"
487 oldref=
"247">Syntax
</paragraph>
488 <paragraph xml-lang=
"en-US" id=
"par_id3151203" role=
"code" l10n=
"U" oldref=
"248">ISEVEN(Value)
</paragraph>
489 <paragraph xml-lang=
"en-US" id=
"par_id3150491" role=
"paragraph" l10n=
"U" oldref=
"249"><emph>Value
</emph> is the value to be checked.
</paragraph>
490 <paragraph xml-lang=
"en-US" id=
"par_id3445844" role=
"paragraph" l10n=
"NEW">If Value is not an integer any digits after the decimal point are ignored. The sign of Value is also ignored.
</paragraph>
491 <paragraph xml-lang=
"en-US" id=
"hd_id3154136" role=
"heading" level=
"3" l10n=
"U"
492 oldref=
"250">Example
</paragraph>
493 <paragraph xml-lang=
"en-US" id=
"par_id3163813" role=
"paragraph" l10n=
"CHG" oldref=
"251">
494 <item type=
"input">=ISEVEN(
48)
</item> returns TRUE
</paragraph>
495 <paragraph xml-lang=
"en-US" id=
"par_id8378856" role=
"paragraph" l10n=
"NEW">
496 <item type=
"input">=ISEVEN(
33)
</item> returns FALSE
</paragraph>
497 <paragraph xml-lang=
"en-US" id=
"par_id7154759" role=
"paragraph" l10n=
"NEW">
498 <item type=
"input">=ISEVEN(
0)
</item> returns TRUE
</paragraph>
499 <paragraph xml-lang=
"en-US" id=
"par_id1912289" role=
"paragraph" l10n=
"NEW">
500 <item type=
"input">=ISEVEN(-
2.1)
</item> returns TRUE
</paragraph>
501 <paragraph xml-lang=
"en-US" id=
"par_id5627307" role=
"paragraph" l10n=
"NEW">
502 <item type=
"input">=ISEVEN(
3.999)
</item> returns FALSE
</paragraph><comment>see also ISODD
</comment>
504 <section id=
"Section40">
505 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3156034"><bookmark_value>ISODD function
</bookmark_value>
506 <bookmark_value>odd integers
</bookmark_value>
507 </bookmark><comment>mw added one entry
</comment>
508 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_ISTUNGERADE" id=
"bm_id3149298" localize=
"false"/>
509 <paragraph xml-lang=
"en-US" id=
"hd_id3156034" role=
"heading" level=
"2" l10n=
"U"
510 oldref=
"255">ISODD
<comment>link from Information cat
</comment></paragraph>
511 <paragraph xml-lang=
"en-US" id=
"par_id3155910" role=
"paragraph" l10n=
"U" oldref=
"256"><ahelp hid=
"HID_FUNC_ISTUNGERADE">Returns TRUE if the value is odd, or FALSE if the number is even.
</ahelp></paragraph>
512 <paragraph xml-lang=
"en-US" id=
"hd_id3151006" role=
"heading" level=
"3" l10n=
"U"
513 oldref=
"257">Syntax
</paragraph>
514 <paragraph xml-lang=
"en-US" id=
"par_id3151375" role=
"code" l10n=
"U" oldref=
"258">ISODD(value)
</paragraph>
515 <paragraph xml-lang=
"en-US" id=
"par_id3155139" role=
"paragraph" l10n=
"U" oldref=
"259"><emph>Value
</emph> is the value to be checked.
</paragraph>
516 <paragraph xml-lang=
"en-US" id=
"par_id9027680" role=
"paragraph" l10n=
"NEW">If Value is not an integer any digits after the decimal point are ignored. The sign of Value is also ignored.
</paragraph>
517 <paragraph xml-lang=
"en-US" id=
"hd_id3163723" role=
"heading" level=
"3" l10n=
"U"
518 oldref=
"260">Example
</paragraph>
519 <paragraph xml-lang=
"en-US" id=
"par_id3155345" role=
"paragraph" l10n=
"CHG" oldref=
"261">
520 <item type=
"input">=ISODD(
33)
</item> returns TRUE
</paragraph>
521 <paragraph xml-lang=
"en-US" id=
"par_id9392986" role=
"paragraph" l10n=
"NEW">
522 <item type=
"input">=ISODD(
48)
</item> returns FALSE
</paragraph>
523 <paragraph xml-lang=
"en-US" id=
"par_id5971251" role=
"paragraph" l10n=
"NEW">
524 <item type=
"input">=ISODD(
3.999)
</item> returns TRUE
</paragraph>
525 <paragraph xml-lang=
"en-US" id=
"par_id4136478" role=
"paragraph" l10n=
"NEW">
526 <item type=
"input">=ISODD(-
3.1)
</item> returns TRUE
</paragraph><comment>see also ISEVEN
</comment>
528 <section id=
"Section39">
529 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3145213"><bookmark_value>LCM function
</bookmark_value>
530 <bookmark_value>least common multiples
</bookmark_value>
531 <bookmark_value>lowest common multiples
</bookmark_value>
532 </bookmark><comment>mw added two entries
</comment>
533 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_KGV" id=
"bm_id3145225" localize=
"false"/>
534 <paragraph xml-lang=
"en-US" id=
"hd_id3145213" role=
"heading" level=
"2" l10n=
"U"
535 oldref=
"265">LCM
</paragraph>
536 <paragraph xml-lang=
"en-US" id=
"par_id3146814" role=
"paragraph" l10n=
"U" oldref=
"266"><ahelp hid=
"HID_FUNC_KGV">Returns the least common multiple of one or more integers.
</ahelp></paragraph>
537 <paragraph xml-lang=
"en-US" id=
"hd_id3148632" role=
"heading" level=
"3" l10n=
"U"
538 oldref=
"267">Syntax
</paragraph>
539 <paragraph xml-lang=
"en-US" id=
"par_id3147279" role=
"code" l10n=
"U" oldref=
"268">LCM(Integer1; Integer2; ...; Integer30)
</paragraph>
540 <paragraph xml-lang=
"en-US" id=
"par_id3156348" role=
"paragraph" l10n=
"U" oldref=
"269"><emph>Integer1 to
30</emph> are up to
30 integers whose lowest common multiple is to be calculated.
</paragraph>
541 <paragraph xml-lang=
"en-US" id=
"hd_id3156431" role=
"heading" level=
"3" l10n=
"U"
542 oldref=
"270">Example
</paragraph>
543 <paragraph xml-lang=
"en-US" id=
"par_id3154914" role=
"paragraph" l10n=
"U" oldref=
"271">If you enter the numbers
<item type=
"input">512</item>;
<item type=
"input">1024</item> and
<item type=
"input">2000</item> in the Integer
1;
2 and
3 text boxes,
128000 will be returned as the result.
</paragraph>
545 <section id=
"Section38">
546 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3154230"><bookmark_value>LCM_ADD function
</bookmark_value>
548 <bookmark xml-lang=
"en-US" branch=
"hid/HID_AAI_FUNC_LCM" id=
"bm_id3147222" localize=
"false"/>
549 <paragraph xml-lang=
"en-US" id=
"hd_id3154230" role=
"heading" level=
"2" l10n=
"U"
550 oldref=
"684">LCM_ADD
</paragraph>
551 <paragraph xml-lang=
"en-US" id=
"par_id3149036" role=
"paragraph" l10n=
"U" oldref=
"685"><ahelp hid=
"HID_AAI_FUNC_LCM"> The result is the lowest common multiple of a list of numbers.
</ahelp></paragraph>
552 <embed href=
"text/scalc/01/04060102.xhp#ADD_note"/>
553 <paragraph xml-lang=
"en-US" id=
"hd_id3153132" role=
"heading" level=
"3" l10n=
"U"
554 oldref=
"686">Syntax
</paragraph>
555 <paragraph xml-lang=
"en-US" id=
"par_id3154395" role=
"code" l10n=
"U" oldref=
"687">LCM_ADD(Number(s))
</paragraph>
556 <paragraph xml-lang=
"en-US" id=
"par_id3147377" role=
"paragraph" l10n=
"U" oldref=
"688"><emph>Number(s)
</emph> is a list of up to
30 numbers.
</paragraph>
557 <paragraph xml-lang=
"en-US" id=
"hd_id3145122" role=
"heading" level=
"3" l10n=
"U"
558 oldref=
"689">Example
</paragraph>
559 <paragraph xml-lang=
"en-US" id=
"par_id3145135" role=
"paragraph" l10n=
"U" oldref=
"690">
560 <item type=
"input">=LCM_ADD(
5;
15;
25)
</item> returns
75.
</paragraph>
562 <section id=
"Section37">
563 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3155802"><bookmark_value>COMBIN function
</bookmark_value>
564 <bookmark_value>number of combinations
</bookmark_value>
565 </bookmark><comment>mw added one entry
</comment>
566 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_KOMBINATIONEN" id=
"bm_id3155077" localize=
"false"/>
567 <paragraph xml-lang=
"en-US" id=
"hd_id3155802" role=
"heading" level=
"2" l10n=
"U"
568 oldref=
"273">COMBIN
<comment>should be statistical--
>add a link there
</comment></paragraph>
569 <paragraph xml-lang=
"en-US" id=
"par_id3156172" role=
"paragraph" l10n=
"CHG" oldref=
"274"><ahelp hid=
"HID_FUNC_KOMBINATIONEN">Returns the number of combinations for elements without repetition.
</ahelp></paragraph>
570 <paragraph xml-lang=
"en-US" id=
"hd_id3156193" role=
"heading" level=
"3" l10n=
"U"
571 oldref=
"275">Syntax
</paragraph>
572 <paragraph xml-lang=
"en-US" id=
"par_id3150223" role=
"code" l10n=
"CHG" oldref=
"276">COMBIN(Count1; Count2)
</paragraph>
573 <paragraph xml-lang=
"en-US" id=
"par_id3150313" role=
"paragraph" l10n=
"CHG" oldref=
"277"><emph>Count1
</emph> is the number of items in the set.
</paragraph>
574 <paragraph xml-lang=
"en-US" id=
"par_id3153830" role=
"paragraph" l10n=
"CHG" oldref=
"278"><emph>Count2
</emph> is the number of items to choose from the set.
</paragraph>
575 <paragraph xml-lang=
"en-US" id=
"par_id6807458" role=
"paragraph" l10n=
"CHG">COMBIN returns the number of ordered ways to choose these items. For example if there are
3 items A, B and C in a set, you can choose
2 items in
3 different ways, namely AB, AC and BC.
</paragraph>
576 <paragraph xml-lang=
"en-US" id=
"par_id7414471" role=
"paragraph" l10n=
"NEW">COMBIN implements the formula: Count1!/(Count2!*(Count1-Count2)!)
</paragraph>
577 <paragraph xml-lang=
"en-US" id=
"hd_id3153171" role=
"heading" level=
"3" l10n=
"U"
578 oldref=
"279">Example
</paragraph>
579 <paragraph xml-lang=
"en-US" id=
"par_id3153517" role=
"paragraph" l10n=
"CHG" oldref=
"280">
580 <item type=
"input">=COMBIN(
3;
2)
</item> returns
3.
</paragraph><comment>see also COMBINA
</comment>
582 <section id=
"Section36">
583 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3150284"><bookmark_value>COMBINA function
</bookmark_value>
584 <bookmark_value>number of combinations with repetitions
</bookmark_value>
585 </bookmark><comment>mw added one entry
</comment>
586 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_KOMBINATIONEN2" id=
"bm_id3150295" localize=
"false"/>
587 <paragraph xml-lang=
"en-US" id=
"hd_id3150284" role=
"heading" level=
"2" l10n=
"U"
588 oldref=
"282">COMBINA
<comment>should be statistical--
>add a link there
</comment></paragraph>
589 <paragraph xml-lang=
"en-US" id=
"par_id3157894" role=
"paragraph" l10n=
"CHG" oldref=
"283"><ahelp hid=
"HID_FUNC_KOMBINATIONEN2">Returns the number of combinations of a subset of items including repetitions.
</ahelp></paragraph>
590 <paragraph xml-lang=
"en-US" id=
"hd_id3145752" role=
"heading" level=
"3" l10n=
"U"
591 oldref=
"284">Syntax
</paragraph>
592 <paragraph xml-lang=
"en-US" id=
"par_id3145765" role=
"code" l10n=
"CHG" oldref=
"285">COMBINA(Count1; Count2)
</paragraph>
593 <paragraph xml-lang=
"en-US" id=
"par_id3153372" role=
"paragraph" l10n=
"CHG" oldref=
"286"><emph>Count1
</emph> is the number of items in the set.
</paragraph>
594 <paragraph xml-lang=
"en-US" id=
"par_id3155544" role=
"paragraph" l10n=
"CHG" oldref=
"287"><emph>Count2
</emph> is the number of items to choose from the set.
</paragraph>
595 <paragraph xml-lang=
"en-US" id=
"par_id1997131" role=
"paragraph" l10n=
"CHG">COMBINA returns the number of unique ways to choose these items, where the order of choosing is irrelevant, and repetition of items is allowed. For example if there are
3 items A, B and C in a set, you can choose
2 items in
6 different ways, namely AB, BA, AC, CA, BC and CB.
</paragraph>
596 <paragraph xml-lang=
"en-US" id=
"par_id2052064" role=
"paragraph" l10n=
"CHG">COMBINA implements the formula: (Count1+Count2-
1)! / (Count2!(Count1-
1)!)
<comment>i88052
</comment></paragraph>
597 <paragraph xml-lang=
"en-US" id=
"hd_id3154584" role=
"heading" level=
"3" l10n=
"U"
598 oldref=
"288">Example
</paragraph>
599 <paragraph xml-lang=
"en-US" id=
"par_id3152904" role=
"paragraph" l10n=
"CHG" oldref=
"289">
600 <item type=
"input">=COMBINA(
3;
2)
</item> returns
6.
</paragraph><comment>see also COMBIN
</comment>
602 <section id=
"Section35">
603 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3156086"><bookmark_value>TRUNC function
</bookmark_value>
604 <bookmark_value>decimal places;cutting off
</bookmark_value>
605 </bookmark><comment>mw added one entry
</comment>
606 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_KUERZEN" id=
"bm_id3157849" localize=
"false"/>
607 <paragraph xml-lang=
"en-US" id=
"hd_id3156086" role=
"heading" level=
"2" l10n=
"U"
608 oldref=
"291">TRUNC
</paragraph>
609 <paragraph xml-lang=
"en-US" id=
"par_id3157866" role=
"paragraph" l10n=
"CHG" oldref=
"292"><ahelp hid=
"HID_FUNC_KUERZEN">Truncates a number by removing decimal places.
</ahelp></paragraph>
610 <paragraph xml-lang=
"en-US" id=
"hd_id3148499" role=
"heading" level=
"3" l10n=
"U"
611 oldref=
"293">Syntax
</paragraph>
612 <paragraph xml-lang=
"en-US" id=
"par_id3148511" role=
"code" l10n=
"U" oldref=
"294">TRUNC(Number; Count)
</paragraph>
613 <paragraph xml-lang=
"en-US" id=
"par_id3150796" role=
"paragraph" l10n=
"CHG" oldref=
"295">Returns
<emph>Number
</emph> with at most
<emph>Count
</emph> decimal places. Excess decimal places are simply removed, irrespective of sign.
</paragraph>
614 <paragraph xml-lang=
"en-US" id=
"par_id3150816" role=
"paragraph" l10n=
"CHG" oldref=
"296">
615 <item type=
"literal">TRUNC(Number;
0)
</item> behaves as
<item type=
"literal">INT(Number)
</item> for positive numbers, but effectively rounds towards zero for negative numbers.
</paragraph>
616 <paragraph xml-lang=
"en-US" id=
"par_id3148548" role=
"warning" l10n=
"CHG" oldref=
"557">The
<emph>visible
</emph> decimal places of the result are specified in
<link href=
"text/shared/optionen/01060500.xhp">Tools - Options - %PRODUCTNAME Calc - Calculate
</link>.
</paragraph>
617 <paragraph xml-lang=
"en-US" id=
"hd_id3152555" role=
"heading" level=
"3" l10n=
"U"
618 oldref=
"297">Example
</paragraph>
619 <paragraph xml-lang=
"en-US" id=
"par_id3152569" role=
"paragraph" l10n=
"CHG" oldref=
"298">
620 <item type=
"input">=TRUNC(
1.239;
2)
</item> returns
1.23. The
9 is lost.
</paragraph>
621 <paragraph xml-lang=
"en-US" id=
"par_id7050080" role=
"paragraph" l10n=
"NEW">
622 <item type=
"input">=TRUNC(-
1.234999;
3)
</item> returns -
1.234. All the
9s are lost.
</paragraph><comment>see also INT, ROUND, ROUNDDOWN, ROUNDUP,
623 CEILING, FLOOR, EVEN, ODD, MROUND
</comment>
625 <section id=
"Section34">
626 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3153601"><bookmark_value>LN function
</bookmark_value>
627 <bookmark_value>natural logarithm
</bookmark_value>
628 </bookmark><comment>mw added one entry
</comment>
629 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_LN" id=
"bm_id3153613" localize=
"false"/>
630 <paragraph xml-lang=
"en-US" id=
"hd_id3153601" role=
"heading" level=
"2" l10n=
"U"
631 oldref=
"301">LN
</paragraph>
632 <paragraph xml-lang=
"en-US" id=
"par_id3154974" role=
"paragraph" l10n=
"CHG" oldref=
"302"><ahelp hid=
"HID_FUNC_LN">Returns the natural logarithm based on the constant e of a number.
</ahelp> The constant e has a value of approximately
2.71828182845904.
</paragraph>
633 <paragraph xml-lang=
"en-US" id=
"hd_id3154993" role=
"heading" level=
"3" l10n=
"U"
634 oldref=
"303">Syntax
</paragraph>
635 <paragraph xml-lang=
"en-US" id=
"par_id3155284" role=
"code" l10n=
"U" oldref=
"304">LN(Number)
</paragraph>
636 <paragraph xml-lang=
"en-US" id=
"par_id3155297" role=
"paragraph" l10n=
"U" oldref=
"305"><emph>Number
</emph> is the value whose natural logarithm is to be calculated.
</paragraph>
637 <paragraph xml-lang=
"en-US" id=
"hd_id3153852" role=
"heading" level=
"3" l10n=
"U"
638 oldref=
"306">Example
</paragraph>
639 <paragraph xml-lang=
"en-US" id=
"par_id3153866" role=
"paragraph" l10n=
"CHG" oldref=
"307">
640 <item type=
"input">=LN(
3)
</item> returns the natural logarithm of
3 (approximately
1.0986).
</paragraph>
641 <paragraph xml-lang=
"en-US" id=
"par_id5747245" role=
"paragraph" l10n=
"NEW">
642 <item type=
"input">=LN(EXP(
321))
</item> returns
321.
</paragraph><comment>see also LOG, LOG10, EXP,
</comment>
644 <section id=
"Section33">
645 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3109813"><bookmark_value>LOG function
</bookmark_value>
646 <bookmark_value>logarithms
</bookmark_value>
647 </bookmark><comment>mw added one entry
</comment>
648 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_LOG" id=
"bm_id3109824" localize=
"false"/>
649 <paragraph xml-lang=
"en-US" id=
"hd_id3109813" role=
"heading" level=
"2" l10n=
"U"
650 oldref=
"311">LOG
</paragraph>
651 <paragraph xml-lang=
"en-US" id=
"par_id3109841" role=
"paragraph" l10n=
"U" oldref=
"312"><ahelp hid=
"HID_FUNC_LOG">Returns the logarithm of a number to the specified base.
</ahelp></paragraph>
652 <paragraph xml-lang=
"en-US" id=
"hd_id3144719" role=
"heading" level=
"3" l10n=
"U"
653 oldref=
"313">Syntax
</paragraph>
654 <paragraph xml-lang=
"en-US" id=
"par_id3144732" role=
"code" l10n=
"U" oldref=
"314">LOG(Number; Base)
</paragraph>
655 <paragraph xml-lang=
"en-US" id=
"par_id3144746" role=
"paragraph" l10n=
"U" oldref=
"315"><emph>Number
</emph> is the value whose logarithm is to be calculated.
</paragraph>
656 <paragraph xml-lang=
"en-US" id=
"par_id3152840" role=
"paragraph" l10n=
"CHG" oldref=
"316"><emph>Base
</emph> (optional) is the base for the logarithm calculation. If omitted, Base
10 is assumed.
</paragraph>
657 <paragraph xml-lang=
"en-US" id=
"hd_id3152860" role=
"heading" level=
"3" l10n=
"U"
658 oldref=
"317">Example
</paragraph>
659 <paragraph xml-lang=
"en-US" id=
"par_id3154429" role=
"paragraph" l10n=
"CHG" oldref=
"318">
660 <item type=
"input">=LOG(
10;
3)
</item> returns the logarithm to base
3 of
10 (approximately
2.0959).
</paragraph>
661 <paragraph xml-lang=
"en-US" id=
"par_id5577562" role=
"paragraph" l10n=
"NEW">
662 <item type=
"input">=LOG(
7^
4;
7)
</item> returns
4.
</paragraph><comment>see also LOG10, LN, POWER,
</comment>
664 <section id=
"Section32">
665 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3154187"><bookmark_value>LOG10 function
</bookmark_value>
666 <bookmark_value>base-
10 logarithm
</bookmark_value>
667 </bookmark><comment>mw added one entry
</comment>
668 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_LOG10" id=
"bm_id3155460" localize=
"false"/>
669 <paragraph xml-lang=
"en-US" id=
"hd_id3154187" role=
"heading" level=
"2" l10n=
"U"
670 oldref=
"322">LOG10
</paragraph>
671 <paragraph xml-lang=
"en-US" id=
"par_id3155476" role=
"paragraph" l10n=
"U" oldref=
"323"><ahelp hid=
"HID_FUNC_LOG10">Returns the base-
10 logarithm of a number.
</ahelp></paragraph>
672 <paragraph xml-lang=
"en-US" id=
"hd_id3155494" role=
"heading" level=
"3" l10n=
"U"
673 oldref=
"324">Syntax
</paragraph>
674 <paragraph xml-lang=
"en-US" id=
"par_id3159294" role=
"code" l10n=
"U" oldref=
"325">LOG10(Number)
</paragraph>
675 <paragraph xml-lang=
"en-US" id=
"par_id3159308" role=
"paragraph" l10n=
"CHG" oldref=
"326">Returns the logarithm to base
10 of
<emph>Number
</emph>.
</paragraph>
676 <paragraph xml-lang=
"en-US" id=
"hd_id3159328" role=
"heading" level=
"3" l10n=
"U"
677 oldref=
"327">Example
</paragraph>
678 <paragraph xml-lang=
"en-US" id=
"par_id3157916" role=
"paragraph" l10n=
"CHG" oldref=
"328">
679 <item type=
"input">=LOG10(
5)
</item> returns the base-
10 logarithm of
5 (approximately
0.69897).
</paragraph><comment>see also LOG, LN, POWER
</comment>
681 <section id=
"Section31">
682 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3152518"><bookmark_value>CEILING function
</bookmark_value>
683 <bookmark_value>rounding;up to multiples of significance
</bookmark_value>
684 </bookmark><comment>mw added one entry
</comment>
685 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_OBERGRENZE" id=
"bm_id3152530" localize=
"false"/>
686 <paragraph xml-lang=
"en-US" id=
"hd_id3152518" role=
"heading" level=
"2" l10n=
"U"
687 oldref=
"332">CEILING
</paragraph>
688 <paragraph xml-lang=
"en-US" id=
"par_id3153422" role=
"paragraph" l10n=
"CHG" oldref=
"558"><ahelp hid=
"HID_FUNC_OBERGRENZE">Rounds a number up to the nearest multiple of Significance.
</ahelp></paragraph>
689 <paragraph xml-lang=
"en-US" id=
"hd_id3153440" role=
"heading" level=
"3" l10n=
"U"
690 oldref=
"334">Syntax
</paragraph>
691 <paragraph xml-lang=
"en-US" id=
"par_id3153454" role=
"code" l10n=
"CHG" oldref=
"335">CEILING(Number; Significance; Mode)
</paragraph>
692 <paragraph xml-lang=
"en-US" id=
"par_id3153467" role=
"paragraph" l10n=
"U" oldref=
"336"><emph>Number
</emph> is the number that is to be rounded up.
</paragraph>
693 <paragraph xml-lang=
"en-US" id=
"par_id3155000" role=
"paragraph" l10n=
"CHG" oldref=
"337"><emph>Significance
</emph> is the number to whose multiple the value is to be rounded up.
</paragraph>
694 <paragraph xml-lang=
"en-US" id=
"par_id3155020" role=
"paragraph" l10n=
"CHG" oldref=
"559"><emph>Mode
</emph> is an optional value. If the Mode value is given and not equal to zero, and if Number and Significance are negative, then rounding is done based on the absolute value of Number. This parameter is ignored when exporting to MS Excel as Excel does not know any third parameter.
</paragraph>
695 <paragraph xml-lang=
"en-US" id=
"par_id3163792" role=
"warning" l10n=
"CHG" oldref=
"629">If both parameters Number and Significance are negative and the Mode value is equal to zero or is not given, the results in $[officename] and Excel will differ after the import has been completed. If you export the spreadsheet to Excel, use Mode=
1 to see the same results in Excel as in Calc.
</paragraph>
696 <paragraph xml-lang=
"en-US" id=
"hd_id3145697" role=
"heading" level=
"3" l10n=
"U"
697 oldref=
"338">Example
</paragraph>
698 <paragraph xml-lang=
"en-US" id=
"par_id3145710" role=
"paragraph" l10n=
"CHG" oldref=
"339">
699 <item type=
"input">=CEILING(-
11;-
2)
</item> returns -
10</paragraph>
700 <paragraph xml-lang=
"en-US" id=
"par_id3145725" role=
"paragraph" l10n=
"CHG" oldref=
"340">
701 <item type=
"input">=CEILING(-
11;-
2;
0)
</item> returns -
10</paragraph>
702 <paragraph xml-lang=
"en-US" id=
"par_id3145740" role=
"paragraph" l10n=
"CHG" oldref=
"341">
703 <item type=
"input">=CEILING(-
11;-
2;
1)
</item> returns -
12</paragraph><comment>see also FLOOR, EVEN, ODD, MROUND,
704 INT, TRUNC, ROUND, ROUNDDOWN, ROUNDUP
</comment>
706 <section id=
"Section30">
707 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3157762"><bookmark_value>PI function
</bookmark_value>
709 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_PI" id=
"bm_id3157774" localize=
"false"/>
710 <paragraph xml-lang=
"en-US" id=
"hd_id3157762" role=
"heading" level=
"2" l10n=
"U"
711 oldref=
"343">PI
</paragraph>
712 <paragraph xml-lang=
"en-US" id=
"par_id3157790" role=
"paragraph" l10n=
"CHG" oldref=
"344"><ahelp hid=
"HID_FUNC_PI">Returns
3.14159265358979, the value of the mathematical constant PI to
14 decimal places.
</ahelp></paragraph>
713 <paragraph xml-lang=
"en-US" id=
"hd_id3157809" role=
"heading" level=
"3" l10n=
"U"
714 oldref=
"345">Syntax
</paragraph>
715 <paragraph xml-lang=
"en-US" id=
"par_id3157822" role=
"code" l10n=
"U" oldref=
"346">PI()
</paragraph>
716 <paragraph xml-lang=
"en-US" id=
"hd_id3157836" role=
"heading" level=
"3" l10n=
"U"
717 oldref=
"347">Example
</paragraph>
718 <paragraph xml-lang=
"en-US" id=
"par_id3152370" role=
"paragraph" l10n=
"CHG" oldref=
"348">
719 <item type=
"input">=PI()
</item> returns
3.14159265358979.
</paragraph>
721 <section id=
"Section29">
722 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3152418"><bookmark_value>MULTINOMIAL function
</bookmark_value>
724 <bookmark xml-lang=
"en-US" branch=
"hid/HID_AAI_FUNC_MULTINOMIAL" id=
"bm_id3152429" localize=
"false"/>
725 <paragraph xml-lang=
"en-US" id=
"hd_id3152418" role=
"heading" level=
"2" l10n=
"U"
726 oldref=
"635">MULTINOMIAL
</paragraph>
727 <paragraph xml-lang=
"en-US" id=
"par_id3152454" role=
"paragraph" l10n=
"U" oldref=
"636"><ahelp hid=
"HID_AAI_FUNC_MULTINOMIAL"> Returns the factorial of the sum of the arguments divided by the product of the factorials of the arguments.
</ahelp></paragraph>
728 <paragraph xml-lang=
"en-US" id=
"hd_id3155646" role=
"heading" level=
"3" l10n=
"U"
729 oldref=
"637">Syntax
</paragraph>
730 <paragraph xml-lang=
"en-US" id=
"par_id3155660" role=
"code" l10n=
"U" oldref=
"638">MULTINOMIAL(Number(s))
</paragraph>
731 <paragraph xml-lang=
"en-US" id=
"par_id3155673" role=
"paragraph" l10n=
"U" oldref=
"639"><emph>Number(s)
</emph> is a list of up to
30 numbers.
</paragraph>
732 <paragraph xml-lang=
"en-US" id=
"hd_id3155687" role=
"heading" level=
"3" l10n=
"U"
733 oldref=
"640">Example
</paragraph>
734 <paragraph xml-lang=
"en-US" id=
"par_id3155701" role=
"paragraph" l10n=
"U" oldref=
"641">
735 <item type=
"input">=MULTINOMIAL(F11:H11)
</item> returns
1260, if F11 to H11 contain the values
<item type=
"input">2</item>,
<item type=
"input">3</item> and
<item type=
"input">4</item>. This corresponds to the formula =(
2+
3+
4)! / (
2!*
3!*
4!)
</paragraph>
737 <section id=
"Section28">
738 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3155717"><bookmark_value>POWER function
</bookmark_value>
740 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_POTENZ" id=
"bm_id3155728" localize=
"false"/>
741 <paragraph xml-lang=
"en-US" id=
"hd_id3155717" role=
"heading" level=
"2" l10n=
"U"
742 oldref=
"350">POWER
</paragraph>
743 <paragraph xml-lang=
"en-US" id=
"par_id3159495" role=
"paragraph" l10n=
"CHG" oldref=
"351"><ahelp hid=
"HID_FUNC_POTENZ">Returns a number raised to a power.
</ahelp></paragraph>
744 <paragraph xml-lang=
"en-US" id=
"hd_id3159513" role=
"heading" level=
"3" l10n=
"U"
745 oldref=
"352">Syntax
</paragraph>
746 <paragraph xml-lang=
"en-US" id=
"par_id3159526" role=
"code" l10n=
"U" oldref=
"353">POWER(Base; Power)
</paragraph>
747 <paragraph xml-lang=
"en-US" id=
"par_id3159540" role=
"paragraph" l10n=
"CHG" oldref=
"354">Returns
<emph>Base
</emph> raised to the power of
<emph>Power
</emph>.
</paragraph>
748 <paragraph xml-lang=
"en-US" id=
"par_id5081637" role=
"paragraph" l10n=
"NEW">The same result may be achieved by using the exponentiation operator ^:
</paragraph>
749 <paragraph xml-lang=
"en-US" id=
"par_id9759514" role=
"code" l10n=
"NEW">
750 <item type=
"literal">Base^Power
</item>
752 <paragraph xml-lang=
"en-US" id=
"hd_id3159580" role=
"heading" level=
"3" l10n=
"U"
753 oldref=
"356">Example
</paragraph>
754 <paragraph xml-lang=
"en-US" id=
"par_id3159594" role=
"paragraph" l10n=
"CHG" oldref=
"357">
755 <item type=
"input">=POWER(
4;
3)
</item> returns
64, which is
4 to the power of
3.
</paragraph>
756 <paragraph xml-lang=
"en-US" id=
"par_id1614429" role=
"paragraph" l10n=
"NEW">=
4^
3 also returns
4 to the power of
3.
</paragraph><comment>see also EXP, LOG, SQRT
</comment>
758 <section id=
"Section27">
759 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3152651"><bookmark_value>SERIESSUM function
</bookmark_value>
761 <bookmark xml-lang=
"en-US" branch=
"hid/HID_AAI_FUNC_SERIESSUM" id=
"bm_id3152662" localize=
"false"/>
762 <paragraph xml-lang=
"en-US" id=
"hd_id3152651" role=
"heading" level=
"2" l10n=
"U"
763 oldref=
"642">SERIESSUM
</paragraph>
764 <paragraph xml-lang=
"en-US" id=
"par_id3152688" role=
"paragraph" l10n=
"CHG" oldref=
"643"><ahelp hid=
".">Sums the first terms of a power series.
</ahelp></paragraph>
765 <paragraph xml-lang=
"en-US" id=
"par_id3152708" role=
"paragraph" l10n=
"U" oldref=
"644">SERIESSUM(x;n;m;coefficients) = coefficient_1*x^n + coefficient_2*x^(n+m) + coefficient_3*x^(n+
2m) +...+ coefficient_i*x^(n+(i-
1)m)
</paragraph>
766 <paragraph xml-lang=
"en-US" id=
"hd_id3152724" role=
"heading" level=
"3" l10n=
"U"
767 oldref=
"645">Syntax
</paragraph>
768 <paragraph xml-lang=
"en-US" id=
"par_idN11BD9" role=
"code" l10n=
"NEW">SERIESSUM(X; N; M; Coefficients)
</paragraph>
769 <paragraph xml-lang=
"en-US" id=
"par_id3152737" role=
"paragraph" l10n=
"CHG" oldref=
"646"><emph>X
</emph> is the input value for the power series.
</paragraph>
770 <paragraph xml-lang=
"en-US" id=
"par_id3144344" role=
"paragraph" l10n=
"CHG" oldref=
"647"><emph>N
</emph> is the initial power
</paragraph>
771 <paragraph xml-lang=
"en-US" id=
"par_id3144357" role=
"paragraph" l10n=
"CHG" oldref=
"648"><emph>M
</emph> is the increment to increase N
</paragraph>
772 <paragraph xml-lang=
"en-US" id=
"par_id3144370" role=
"paragraph" l10n=
"U" oldref=
"649"><emph>Coefficients
</emph> is a series of coefficients. For each coefficient the series sum is extended by one section.
</paragraph>
774 <section id=
"Section26">
775 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3144386"><bookmark_value>PRODUCT function
</bookmark_value>
776 <bookmark_value>numbers;multiplying
</bookmark_value>
777 <bookmark_value>multiplying;numbers
</bookmark_value>
778 </bookmark><comment>mw added two entries
</comment>
779 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_PRODUKT" id=
"bm_id3144397" localize=
"false"/>
780 <paragraph xml-lang=
"en-US" id=
"hd_id3144386" role=
"heading" level=
"2" l10n=
"U"
781 oldref=
"361">PRODUCT
</paragraph>
782 <paragraph xml-lang=
"en-US" id=
"par_id3144414" role=
"paragraph" l10n=
"U" oldref=
"362"><ahelp hid=
"HID_FUNC_PRODUKT">Multiplies all the numbers given as arguments and returns the product.
</ahelp></paragraph>
783 <paragraph xml-lang=
"en-US" id=
"hd_id3144433" role=
"heading" level=
"3" l10n=
"U"
784 oldref=
"363">Syntax
</paragraph>
785 <paragraph xml-lang=
"en-US" id=
"par_id3144446" role=
"code" l10n=
"U" oldref=
"364">PRODUCT(Number1; Number2; ...; Number30)
</paragraph>
786 <paragraph xml-lang=
"en-US" id=
"par_id3144460" role=
"paragraph" l10n=
"U" oldref=
"365"><emph>Number1 to
30</emph> are up to
30 arguments whose product is to be calculated.
</paragraph>
787 <paragraph xml-lang=
"en-US" id=
"par_id1589098" role=
"paragraph" l10n=
"NEW">PRODUCT returns number1 * number2 * number3 * ...
</paragraph>
788 <paragraph xml-lang=
"en-US" id=
"hd_id3144480" role=
"heading" level=
"3" l10n=
"U"
789 oldref=
"366">Example
</paragraph>
790 <paragraph xml-lang=
"en-US" id=
"par_id3144494" role=
"paragraph" l10n=
"CHG" oldref=
"367">
791 <item type=
"input">=PRODUCT(
2;
3;
4)
</item> returns
24.
</paragraph><comment>see also FACT, SUM
</comment>
793 <section id=
"Section25">
794 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3160340"><bookmark_value>SUMSQ function
</bookmark_value>
795 <bookmark_value>square number additions
</bookmark_value>
796 <bookmark_value>sums;of square numbers
</bookmark_value>
797 </bookmark><comment>mw added two entries
</comment>
798 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_QUADRATESUMME" id=
"bm_id3160351" localize=
"false"/>
799 <paragraph xml-lang=
"en-US" id=
"hd_id3160340" role=
"heading" level=
"2" l10n=
"U"
800 oldref=
"369">SUMSQ
</paragraph>
801 <paragraph xml-lang=
"en-US" id=
"par_id3160368" role=
"paragraph" l10n=
"U" oldref=
"370"><ahelp hid=
"HID_FUNC_QUADRATESUMME">If you want to calculate the sum of the squares of numbers (totaling up of the squares of the arguments), enter these into the text fields.
</ahelp></paragraph>
802 <paragraph xml-lang=
"en-US" id=
"hd_id3160388" role=
"heading" level=
"3" l10n=
"U"
803 oldref=
"371">Syntax
</paragraph>
804 <paragraph xml-lang=
"en-US" id=
"par_id3160402" role=
"code" l10n=
"U" oldref=
"372">SUMSQ(Number1; Number2; ...; Number30)
</paragraph>
805 <paragraph xml-lang=
"en-US" id=
"par_id3160415" role=
"paragraph" l10n=
"U" oldref=
"373"><emph>Number1 to
30</emph> are up to
30 arguments the sum of whose squares is to be calculated.
</paragraph>
806 <paragraph xml-lang=
"en-US" id=
"hd_id3160436" role=
"heading" level=
"3" l10n=
"U"
807 oldref=
"374">Example
</paragraph>
808 <paragraph xml-lang=
"en-US" id=
"par_id3160449" role=
"paragraph" l10n=
"U" oldref=
"375">If you enter the numbers
<item type=
"input">2</item>;
<item type=
"input">3</item> and
<item type=
"input">4</item> in the Number
1;
2 and
3 text boxes,
29 is returned as the result.
</paragraph>
810 <section id=
"Section24">
811 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3158247"><bookmark_value>MOD function
</bookmark_value>
812 <bookmark_value>remainders of divisions
</bookmark_value>
813 </bookmark><comment>mw added one entry
</comment>
814 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_REST" id=
"bm_id3158259" localize=
"false"/>
815 <paragraph xml-lang=
"en-US" id=
"hd_id3158247" role=
"heading" level=
"2" l10n=
"U"
816 oldref=
"387">MOD
</paragraph>
817 <paragraph xml-lang=
"en-US" id=
"par_id3158276" role=
"paragraph" l10n=
"CHG" oldref=
"388"><ahelp hid=
"HID_FUNC_REST">Returns the remainder when one integer is divided by another.
</ahelp></paragraph>
818 <paragraph xml-lang=
"en-US" id=
"hd_id3158294" role=
"heading" level=
"3" l10n=
"U"
819 oldref=
"389">Syntax
</paragraph>
820 <paragraph xml-lang=
"en-US" id=
"par_id3158308" role=
"code" l10n=
"U" oldref=
"390">MOD(Dividend; Divisor)
</paragraph>
821 <paragraph xml-lang=
"en-US" id=
"par_id3158321" role=
"paragraph" l10n=
"CHG" oldref=
"391"> For integer arguments this function returns Dividend modulo Divisor, that is the remainder when
<emph>Dividend
</emph> is divided by
<emph>Divisor
</emph>.
</paragraph>
822 <paragraph xml-lang=
"en-US" id=
"par_id3158341" role=
"paragraph" l10n=
"CHG" oldref=
"392">This function is implemented as
<item type=
"literal">Dividend - Divisor * INT(Dividend/Divisor)
</item> , and this formula gives the result if the arguments are not integer.
</paragraph>
823 <paragraph xml-lang=
"en-US" id=
"hd_id3158361" role=
"heading" level=
"3" l10n=
"U"
824 oldref=
"393">Example
</paragraph>
825 <paragraph xml-lang=
"en-US" id=
"par_id3158374" role=
"paragraph" l10n=
"CHG" oldref=
"394">
826 <item type=
"input">=MOD(
22;
3)
</item> returns
1, the remainder when
22 is divided by
3.
</paragraph>
827 <paragraph xml-lang=
"en-US" id=
"par_id1278420" role=
"paragraph" l10n=
"NEW">
828 <item type=
"input">=MOD(
11.25;
2.5)
</item> returns
1.25.
</paragraph><comment>see also QUOTIENT, INT,
</comment>
830 <section id=
"Section23">
831 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3144592"><bookmark_value>QUOTIENT function
</bookmark_value>
832 <bookmark_value>divisions
</bookmark_value>
833 </bookmark><comment>mw added one entry
</comment>
834 <bookmark xml-lang=
"en-US" branch=
"hid/HID_AAI_FUNC_QUOTIENT" id=
"bm_id3144603" localize=
"false"/>
835 <paragraph xml-lang=
"en-US" id=
"hd_id3144592" role=
"heading" level=
"2" l10n=
"E"
836 oldref=
"652">QUOTIENT
</paragraph>
837 <paragraph xml-lang=
"en-US" id=
"par_id3144627" role=
"paragraph" l10n=
"CHG" oldref=
"653"><ahelp hid=
"HID_AAI_FUNC_QUOTIENT">Returns the integer part of a division operation.
</ahelp></paragraph>
838 <paragraph xml-lang=
"en-US" id=
"hd_id3144646" role=
"heading" level=
"3" l10n=
"U"
839 oldref=
"654">Syntax
</paragraph>
840 <paragraph xml-lang=
"en-US" id=
"par_id3144659" role=
"code" l10n=
"U" oldref=
"655">QUOTIENT(Numerator; Denominator)
</paragraph>
841 <paragraph xml-lang=
"en-US" id=
"par_id9038972" role=
"paragraph" l10n=
"NEW">Returns the integer part of
<emph>Numerator
</emph> divided by
<emph>Denominator
</emph>.
</paragraph>
842 <paragraph xml-lang=
"en-US" id=
"par_id7985168" role=
"paragraph" l10n=
"NEW">QUOTIENT is equivalent to
<item type=
"literal">INT(numerator/denominator)
</item>, except that it may report errors with different error codes.
</paragraph>
843 <paragraph xml-lang=
"en-US" id=
"hd_id3144674" role=
"heading" level=
"3" l10n=
"U"
844 oldref=
"656">Example
</paragraph>
845 <paragraph xml-lang=
"en-US" id=
"par_id3144687" role=
"paragraph" l10n=
"CHG" oldref=
"657">
846 <item type=
"input">=QUOTIENT(
11;
3)
</item> returns
3. The remainder of
2 is lost.
</paragraph><comment>see also MOD, INT
</comment>
848 <section id=
"Section22">
849 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3144702"><bookmark_value>RADIANS function
</bookmark_value>
850 <bookmark_value>converting;degrees, into radians
</bookmark_value>
851 </bookmark><comment>mw added one entry
</comment>
852 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_RAD" id=
"bm_id3158008" localize=
"false"/>
853 <paragraph xml-lang=
"en-US" id=
"hd_id3144702" role=
"heading" level=
"2" l10n=
"U"
854 oldref=
"377">RADIANS
</paragraph>
855 <paragraph xml-lang=
"en-US" id=
"par_id3158025" role=
"paragraph" l10n=
"U" oldref=
"378"><ahelp hid=
"HID_FUNC_RAD">Converts degrees to radians.
</ahelp></paragraph>
856 <paragraph xml-lang=
"en-US" id=
"hd_id3158042" role=
"heading" level=
"3" l10n=
"U"
857 oldref=
"379">Syntax
</paragraph>
858 <paragraph xml-lang=
"en-US" id=
"par_id3158055" role=
"code" l10n=
"U" oldref=
"380">RADIANS(Number)
</paragraph>
859 <paragraph xml-lang=
"en-US" id=
"par_id3158069" role=
"paragraph" l10n=
"CHG" oldref=
"381"><emph>Number
</emph> is the angle in degrees to be converted to radians.
</paragraph>
860 <paragraph xml-lang=
"en-US" id=
"hd_id876186" role=
"heading" level=
"3" l10n=
"NEW">Example
</paragraph>
861 <paragraph xml-lang=
"en-US" id=
"par_id3939634" role=
"paragraph" l10n=
"NEW">
862 <item type=
"input">=RADIANS(
90)
</item> returns
1.5707963267949, which is PI/
2 to Calc's accuracy.
</paragraph><comment>see also DEGREES
</comment>
864 <section id=
"Section21">
865 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3158121"><bookmark_value>ROUND function
</bookmark_value>
867 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_RUNDEN" id=
"bm_id3158133" localize=
"false"/>
868 <paragraph xml-lang=
"en-US" id=
"hd_id3158121" role=
"heading" level=
"2" l10n=
"U"
869 oldref=
"398">ROUND
</paragraph>
870 <paragraph xml-lang=
"en-US" id=
"par_id3158150" role=
"paragraph" l10n=
"CHG" oldref=
"399"><ahelp hid=
"HID_FUNC_RUNDEN">Rounds a number to a certain number of decimal places.
</ahelp></paragraph>
871 <paragraph xml-lang=
"en-US" id=
"hd_id3158169" role=
"heading" level=
"3" l10n=
"U"
872 oldref=
"400">Syntax
</paragraph>
873 <paragraph xml-lang=
"en-US" id=
"par_id3158182" role=
"code" l10n=
"U" oldref=
"401">ROUND(Number; Count)
</paragraph>
874 <paragraph xml-lang=
"en-US" id=
"par_id3158196" role=
"paragraph" l10n=
"U" oldref=
"402">Returns
<emph>Number
</emph> rounded to
<emph>Count
</emph> decimal places. If Count is omitted or zero, the function rounds to the nearest integer. If Count is negative, the function rounds to the nearest
10,
100,
1000, etc.
</paragraph>
875 <paragraph xml-lang=
"en-US" id=
"par_id599688" role=
"paragraph" l10n=
"NEW">This function rounds to the nearest number. See ROUNDDOWN and ROUNDUP for alternatives.
</paragraph>
876 <paragraph xml-lang=
"en-US" id=
"hd_id3145863" role=
"heading" level=
"3" l10n=
"U"
877 oldref=
"404">Example
</paragraph>
878 <paragraph xml-lang=
"en-US" id=
"par_id3145876" role=
"paragraph" l10n=
"CHG" oldref=
"405">
879 <item type=
"input">=ROUND(
2.348;
2)
</item> returns
2.35</paragraph>
880 <paragraph xml-lang=
"en-US" id=
"par_id3145899" role=
"paragraph" l10n=
"CHG" oldref=
"406">
881 <item type=
"input">=ROUND(-
32.4834;
3)
</item> returns -
32.483. Change the cell format to see all decimals.
</paragraph>
882 <paragraph xml-lang=
"en-US" id=
"par_id1371501" role=
"paragraph" l10n=
"NEW">
883 <item type=
"input">=ROUND(
2.348;
0)
</item> returns
2.
</paragraph>
884 <paragraph xml-lang=
"en-US" id=
"par_id4661702" role=
"paragraph" l10n=
"NEW">
885 <item type=
"input">=ROUND(
2.5)
</item> returns
3.
</paragraph>
886 <paragraph xml-lang=
"en-US" id=
"par_id7868892" role=
"paragraph" l10n=
"NEW">
887 <item type=
"input">=ROUND(
987.65;-
2)
</item> returns
1000.
</paragraph><comment>see also INT, TRUNC, ROUNDDOWN, ROUNDUP,
888 CEILING, FLOOR, EVEN, ODD, MROUND
</comment>
890 <section id=
"Section20">
891 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3145991"><bookmark_value>ROUNDDOWN function
</bookmark_value>
893 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_ABRUNDEN" id=
"bm_id3146003" localize=
"false"/>
894 <paragraph xml-lang=
"en-US" id=
"hd_id3145991" role=
"heading" level=
"2" l10n=
"U"
895 oldref=
"24">ROUNDDOWN
</paragraph>
896 <paragraph xml-lang=
"en-US" id=
"par_id3146020" role=
"paragraph" l10n=
"CHG" oldref=
"25"><ahelp hid=
"HID_FUNC_ABRUNDEN">Rounds a number down, toward zero, to a certain precision.
</ahelp></paragraph>
897 <paragraph xml-lang=
"en-US" id=
"hd_id3146037" role=
"heading" level=
"3" l10n=
"U"
898 oldref=
"26">Syntax
</paragraph>
899 <paragraph xml-lang=
"en-US" id=
"par_id3146051" role=
"code" l10n=
"U" oldref=
"27">ROUNDDOWN(Number; Count)
</paragraph>
900 <paragraph xml-lang=
"en-US" id=
"par_id3146064" role=
"paragraph" l10n=
"CHG" oldref=
"28">Returns
<emph>Number
</emph> rounded down (towards zero) to
<emph>Count
</emph> decimal places. If Count is omitted or zero, the function rounds down to an integer. If Count is negative, the function rounds down to the next
10,
100,
1000, etc.
</paragraph>
901 <paragraph xml-lang=
"en-US" id=
"par_id2188787" role=
"paragraph" l10n=
"NEW">This function rounds towards zero. See ROUNDUP and ROUND for alternatives.
</paragraph>
902 <paragraph xml-lang=
"en-US" id=
"hd_id3163164" role=
"heading" level=
"3" l10n=
"U"
903 oldref=
"30">Example
</paragraph>
904 <paragraph xml-lang=
"en-US" id=
"par_id3163178" role=
"paragraph" l10n=
"CHG" oldref=
"31">
905 <item type=
"input">=ROUNDDOWN(
1.234;
2)
</item> returns
1.23.
</paragraph>
906 <paragraph xml-lang=
"en-US" id=
"par_id5833307" role=
"paragraph" l10n=
"NEW">
907 <item type=
"input">=ROUNDDOWN(
45.67;
0)
</item> returns
45.
</paragraph>
908 <paragraph xml-lang=
"en-US" id=
"par_id7726676" role=
"paragraph" l10n=
"NEW">
909 <item type=
"input">=ROUNDDOWN(-
45.67)
</item> returns -
45.
</paragraph>
910 <paragraph xml-lang=
"en-US" id=
"par_id3729361" role=
"paragraph" l10n=
"NEW">
911 <item type=
"input">=ROUNDDOWN(
987.65;-
2)
</item> returns
900.
</paragraph><comment>see also INT, TRUNC, ROUND, ROUNDUP,
912 CEILING, FLOOR, EVEN, ODD, MROUND
</comment>
914 <section id=
"Section19">
915 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3163268"><bookmark_value>ROUNDUP function
</bookmark_value>
917 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_AUFRUNDEN" id=
"bm_id3163280" localize=
"false"/>
918 <paragraph xml-lang=
"en-US" id=
"hd_id3163268" role=
"heading" level=
"2" l10n=
"U"
919 oldref=
"140">ROUNDUP
</paragraph>
920 <paragraph xml-lang=
"en-US" id=
"par_id3163297" role=
"paragraph" l10n=
"CHG" oldref=
"141"><ahelp hid=
"HID_FUNC_AUFRUNDEN">Rounds a number up, away from zero, to a certain precision.
</ahelp></paragraph>
921 <paragraph xml-lang=
"en-US" id=
"hd_id3163315" role=
"heading" level=
"3" l10n=
"U"
922 oldref=
"142">Syntax
</paragraph>
923 <paragraph xml-lang=
"en-US" id=
"par_id3163328" role=
"code" l10n=
"U" oldref=
"143">ROUNDUP(Number; Count)
</paragraph>
924 <paragraph xml-lang=
"en-US" id=
"par_id3163342" role=
"paragraph" l10n=
"CHG" oldref=
"144">Returns
<emph>Number
</emph> rounded up (away from zero) to
<emph>Count
</emph> decimal places. If Count is omitted or zero, the function rounds up to an integer. If Count is negative, the function rounds up to the next
10,
100,
1000, etc.
</paragraph>
925 <paragraph xml-lang=
"en-US" id=
"par_id9573961" role=
"paragraph" l10n=
"NEW">This function rounds away from zero. See ROUNDDOWN and ROUND for alternatives.
</paragraph>
926 <paragraph xml-lang=
"en-US" id=
"hd_id3163381" role=
"heading" level=
"3" l10n=
"U"
927 oldref=
"146">Example
</paragraph>
928 <paragraph xml-lang=
"en-US" id=
"par_id3144786" role=
"paragraph" l10n=
"CHG" oldref=
"147">
929 <item type=
"input">=ROUNDUP(
1.1111;
2)
</item> returns
1.12.
</paragraph>
930 <paragraph xml-lang=
"en-US" id=
"par_id7700430" role=
"paragraph" l10n=
"NEW">
931 <item type=
"input">=ROUNDUP(
1.2345;
1)
</item> returns
1.3.
</paragraph>
932 <paragraph xml-lang=
"en-US" id=
"par_id1180455" role=
"paragraph" l10n=
"NEW">
933 <item type=
"input">=ROUNDUP(
45.67;
0)
</item> returns
46.
</paragraph>
934 <paragraph xml-lang=
"en-US" id=
"par_id3405560" role=
"paragraph" l10n=
"NEW">
935 <item type=
"input">=ROUNDUP(-
45.67)
</item> returns -
46.
</paragraph>
936 <paragraph xml-lang=
"en-US" id=
"par_id3409527" role=
"paragraph" l10n=
"NEW">
937 <item type=
"input">=ROUNDUP(
987.65;-
2)
</item> returns
1000.
</paragraph><comment>see also INT, TRUNC, ROUND, ROUNDDOWN,
938 CEILING, FLOOR, EVEN, ODD, MROUND
</comment>
940 <section id=
"Section18">
941 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3144877"><bookmark_value>SIN function
</bookmark_value>
943 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_SIN" id=
"bm_id3144889" localize=
"false"/>
944 <paragraph xml-lang=
"en-US" id=
"hd_id3144877" role=
"heading" level=
"2" l10n=
"U"
945 oldref=
"408">SIN
</paragraph>
946 <paragraph xml-lang=
"en-US" id=
"par_id3144906" role=
"paragraph" l10n=
"CHG" oldref=
"409"><ahelp hid=
"HID_FUNC_SIN">Returns the sine of the given angle (in radians).
</ahelp></paragraph>
947 <paragraph xml-lang=
"en-US" id=
"hd_id3144923" role=
"heading" level=
"3" l10n=
"U"
948 oldref=
"410">Syntax
</paragraph>
949 <paragraph xml-lang=
"en-US" id=
"par_id3144937" role=
"code" l10n=
"U" oldref=
"411">SIN(Number)
</paragraph>
950 <paragraph xml-lang=
"en-US" id=
"par_id3144950" role=
"paragraph" l10n=
"CHG" oldref=
"412">Returns the (trigonometric) sine of
<emph>Number
</emph>, the angle in radians.
</paragraph>
951 <paragraph xml-lang=
"en-US" id=
"par_id8079470" role=
"paragraph" l10n=
"NEW">To return the sine of an angle in degrees, use the RADIANS function.
</paragraph>
952 <paragraph xml-lang=
"en-US" id=
"hd_id3144969" role=
"heading" level=
"3" l10n=
"U"
953 oldref=
"413">Example
</paragraph>
954 <paragraph xml-lang=
"en-US" id=
"par_id3144983" role=
"paragraph" l10n=
"CHG" oldref=
"414">
955 <item type=
"input">=SIN(PI()/
2)
</item> returns
1, the sine of PI/
2 radians.
</paragraph>
956 <paragraph xml-lang=
"en-US" id=
"par_id3916440" role=
"paragraph" l10n=
"NEW">
957 <item type=
"input">=SIN(RADIANS(
30))
</item> returns
0.5, the sine of
30 degrees.
</paragraph><comment>see also COS, TAN, COT,
958 ACOS, ASIN, ATAN, ATAN2, ACOT
</comment>
960 <section id=
"Section17">
961 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3163397"><bookmark_value>SINH function
</bookmark_value>
963 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_SINHYP" id=
"bm_id3163409" localize=
"false"/>
964 <paragraph xml-lang=
"en-US" id=
"hd_id3163397" role=
"heading" level=
"2" l10n=
"U"
965 oldref=
"418">SINH
</paragraph>
966 <paragraph xml-lang=
"en-US" id=
"par_id3163426" role=
"paragraph" l10n=
"U" oldref=
"419"><ahelp hid=
"HID_FUNC_SINHYP">Returns the hyperbolic sine of a number.
</ahelp></paragraph>
967 <paragraph xml-lang=
"en-US" id=
"hd_id3163444" role=
"heading" level=
"3" l10n=
"U"
968 oldref=
"420">Syntax
</paragraph>
969 <paragraph xml-lang=
"en-US" id=
"par_id3163457" role=
"code" l10n=
"U" oldref=
"421">SINH(Number)
</paragraph>
970 <paragraph xml-lang=
"en-US" id=
"par_id3163471" role=
"paragraph" l10n=
"CHG" oldref=
"422">Returns the hyperbolic sine of
<emph>Number
</emph>.
</paragraph>
971 <paragraph xml-lang=
"en-US" id=
"hd_id3163491" role=
"heading" level=
"3" l10n=
"U"
972 oldref=
"423">Example
</paragraph>
973 <paragraph xml-lang=
"en-US" id=
"par_id3163504" role=
"paragraph" l10n=
"CHG" oldref=
"424">
974 <item type=
"input">=SINH(
0)
</item> returns
0, the hyperbolic sine of
0.
</paragraph><comment>see also COSH, TANH, COTH,
975 ACOSH, ASINH, ATANH, ACOTH
</comment>
977 <section id=
"Section16">
978 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3163596"><bookmark_value>SUM function
</bookmark_value>
979 <bookmark_value>adding;numbers in cell ranges
</bookmark_value>
980 </bookmark><comment>mw added one entry
</comment>
981 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_SUMME" id=
"bm_id3163608" localize=
"false"/>
982 <paragraph xml-lang=
"en-US" id=
"hd_id3163596" role=
"heading" level=
"2" l10n=
"U"
983 oldref=
"428">SUM
</paragraph>
984 <paragraph xml-lang=
"en-US" id=
"par_id3163625" role=
"paragraph" l10n=
"U" oldref=
"429"><ahelp hid=
"HID_FUNC_SUMME">Adds all the numbers in a range of cells.
</ahelp></paragraph>
985 <paragraph xml-lang=
"en-US" id=
"hd_id3163643" role=
"heading" level=
"3" l10n=
"U"
986 oldref=
"430">Syntax
</paragraph>
987 <paragraph xml-lang=
"en-US" id=
"par_id3163656" role=
"code" l10n=
"U" oldref=
"431">SUM(Number1; Number2; ...; Number30)
</paragraph>
988 <paragraph xml-lang=
"en-US" id=
"par_id3163671" role=
"paragraph" l10n=
"U" oldref=
"432"><emph>Number
1 to Number
30</emph> are up to
30 arguments whose sum is to be calculated.
</paragraph>
989 <paragraph xml-lang=
"en-US" id=
"hd_id3163690" role=
"heading" level=
"3" l10n=
"U"
990 oldref=
"433">Example
</paragraph>
991 <paragraph xml-lang=
"en-US" id=
"par_id3163704" role=
"paragraph" l10n=
"U" oldref=
"434">If you enter the numbers
<item type=
"input">2</item>;
<item type=
"input">3 </item>and
<item type=
"input">4</item> in the Number
1;
2 and
3 text boxes,
9 will be returned as the result.
</paragraph>
992 <paragraph xml-lang=
"en-US" id=
"par_id3151740" role=
"paragraph" l10n=
"U" oldref=
"556">
993 <item type=
"input">=SUM(A1;A3;B5)
</item> calculates the sum of the three cells.
<item type=
"input">=SUM (A1:E10)
</item> calculates the sum of all cells in the A1 to E10 cell range.
</paragraph>
994 <paragraph xml-lang=
"en-US" id=
"par_id3151756" role=
"paragraph" l10n=
"U" oldref=
"619">Conditions linked by AND can be used with the function SUM() in the following manner:
</paragraph>
995 <paragraph xml-lang=
"en-US" id=
"par_id3151774" role=
"paragraph" l10n=
"CHG" oldref=
"620">Example assumption: You have entered invoices into a table. Column A contains the date value of the invoice, column B the amounts. You want to find a formula that you can use to return the total of all amounts only for a specific month, e.g. only the amount for the period
>=
2008-
01-
01 to
<2008-
02-
01. The range with the date values covers A1:A40, the range containing the amounts to be totaled is B1:B40. C1 contains the start date,
2008<item type=
"input">-
01-
01</item>, of the invoices to be included and C2 the date,
2008<item type=
"input">-
02-
01</item>, that is no longer included.
</paragraph>
996 <paragraph xml-lang=
"en-US" id=
"par_id3151799" role=
"paragraph" l10n=
"U" oldref=
"621">Enter the following formula as an array formula:
</paragraph>
997 <paragraph xml-lang=
"en-US" id=
"par_id3151813" role=
"paragraph" l10n=
"U" oldref=
"622">
998 <item type=
"input">=SUM((A1:A40
>=C1)*(A1:A40
<C2)*B1:B40)
</item>
1000 <paragraph xml-lang=
"en-US" id=
"par_id3151828" role=
"paragraph" l10n=
"U" oldref=
"623">In order to enter this as an array formula, you must press the Shift
<switchinline select=
"sys"><caseinline select=
"MAC">+Command
1001 </caseinline><defaultinline>+ Ctrl
</defaultinline></switchinline>+ Enter keys instead of simply pressing the Enter key to close the formula. The formula will then be shown in the
<emph>Formula
</emph> bar enclosed in braces.
</paragraph>
1002 <paragraph xml-lang=
"en-US" id=
"par_id3151869" role=
"paragraph" l10n=
"U" oldref=
"624">{=SUM((A1:A40
>=C1)*(A1:A40
<C2)*B1:B40)}
</paragraph>
1003 <paragraph xml-lang=
"en-US" id=
"par_id3151884" role=
"paragraph" l10n=
"CHG" oldref=
"625">The formula is based on the fact that the result of a comparison is
1 if the criterion is met and
0 if it is not met. The individual comparison results will be treated as an array and used in matrix multiplication, and at the end the individual values will be totaled to give the result matrix.
</paragraph>
1005 <section id=
"Section15">
1006 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3151957"><bookmark_value>SUMIF function
</bookmark_value>
1007 <bookmark_value>adding;specified numbers
</bookmark_value>
1008 </bookmark><comment>mw added one entry
</comment>
1009 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_SUMMEWENN" id=
"bm_id3151969" localize=
"false"/>
1010 <paragraph xml-lang=
"en-US" id=
"hd_id3151957" role=
"heading" level=
"2" l10n=
"U"
1011 oldref=
"436">SUMIF
</paragraph>
1012 <paragraph xml-lang=
"en-US" id=
"par_id3151986" role=
"paragraph" l10n=
"U" oldref=
"437"><ahelp hid=
"HID_FUNC_SUMMEWENN">Adds the cells specified by a given criteria.
</ahelp> This function is used to browse a range when you search for a certain value.
</paragraph>
1013 <embed href=
"text/shared/00/00000001.xhp#regulaer"/>
1014 <paragraph xml-lang=
"en-US" id=
"hd_id3152015" role=
"heading" level=
"3" l10n=
"U"
1015 oldref=
"438">Syntax
</paragraph>
1016 <paragraph xml-lang=
"en-US" id=
"par_id3152028" role=
"code" l10n=
"U" oldref=
"439">SUMIF(Range; Criteria; SumRange)
</paragraph>
1017 <paragraph xml-lang=
"en-US" id=
"par_id3152043" role=
"paragraph" l10n=
"U" oldref=
"440"><emph>Range
</emph> is the range to which the criteria are to be applied.
</paragraph>
1018 <paragraph xml-lang=
"en-US" id=
"par_id3152062" role=
"paragraph" l10n=
"CHG" oldref=
"441"><emph>Criteria
</emph> is the cell in which the search criterion is shown, or the search criterion itself. If the criteria is written into the formula, it has to be surrounded by double quotes.
</paragraph>
1019 <paragraph xml-lang=
"en-US" id=
"par_id3152083" role=
"paragraph" l10n=
"U" oldref=
"442"><emph>SumRange
</emph> is the range from which values are summed. If this parameter has not been indicated, the values found in the Range are summed.
</paragraph>
1020 <paragraph xml-lang=
"en-US" id=
"par_id8347422" role=
"note" l10n=
"NEW">SUMIF supports the reference concatenation operator (~) only in the Criteria parameter, and only if the optional SumRange parameter is not given.
</paragraph>
1021 <paragraph xml-lang=
"en-US" id=
"hd_id3152110" role=
"heading" level=
"3" l10n=
"U"
1022 oldref=
"443">Example
</paragraph>
1023 <paragraph xml-lang=
"en-US" id=
"par_id3152148" role=
"paragraph" l10n=
"CHG" oldref=
"626">To sum up only negative numbers:
<item type=
"input">=SUMIF(A1:A10;
"<0")
</item>
1025 <paragraph xml-lang=
"en-US" id=
"par_id6670125" role=
"paragraph" l10n=
"NEW">
1026 <item type=
"input">=SUMIF(A1:A10;
">0";B1:
10)
</item> - sums values from the range B1:B10 only if the corresponding values in the range A1:A10 are
>0.
</paragraph>
1027 <paragraph xml-lang=
"en-US" id=
"par_id6062196" role=
"paragraph" l10n=
"NEW">See COUNTIF() for some more syntax examples that can be used with SUMIF().
</paragraph>
1029 <section id=
"Section14">
1030 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3152195"><bookmark_value>TAN function
</bookmark_value>
1032 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_TAN" id=
"bm_id3152207" localize=
"false"/>
1033 <paragraph xml-lang=
"en-US" id=
"hd_id3152195" role=
"heading" level=
"2" l10n=
"U"
1034 oldref=
"446">TAN
</paragraph>
1035 <paragraph xml-lang=
"en-US" id=
"par_id3152224" role=
"paragraph" l10n=
"CHG" oldref=
"447"><ahelp hid=
"HID_FUNC_TAN">Returns the tangent of the given angle (in radians).
</ahelp></paragraph>
1036 <paragraph xml-lang=
"en-US" id=
"hd_id3152242" role=
"heading" level=
"3" l10n=
"U"
1037 oldref=
"448">Syntax
</paragraph>
1038 <paragraph xml-lang=
"en-US" id=
"par_id3152255" role=
"code" l10n=
"U" oldref=
"449">TAN(Number)
</paragraph>
1039 <paragraph xml-lang=
"en-US" id=
"par_id3152269" role=
"paragraph" l10n=
"CHG" oldref=
"450">Returns the (trigonometric) tangent of
<emph>Number
</emph>, the angle in radians.
</paragraph>
1040 <paragraph xml-lang=
"en-US" id=
"par_id5752128" role=
"paragraph" l10n=
"NEW">To return the tangent of an angle in degrees, use the RADIANS function.
</paragraph>
1041 <paragraph xml-lang=
"en-US" id=
"hd_id3152287" role=
"heading" level=
"3" l10n=
"U"
1042 oldref=
"451">Example
</paragraph>
1043 <paragraph xml-lang=
"en-US" id=
"par_id3152301" role=
"paragraph" l10n=
"CHG" oldref=
"452">
1044 <item type=
"input">=TAN(PI()/
4)
</item>returns
1, the tangent of PI/
4 radians.
</paragraph>
1045 <paragraph xml-lang=
"en-US" id=
"par_id1804864" role=
"paragraph" l10n=
"NEW">
1046 <item type=
"input">=TAN(RADIANS(
45))
</item> returns
1, the tangent of
45 degrees.
</paragraph><comment>see also COS, SIN, COT,
1047 ACOS, ASIN, ATAN, ATAN2, ACOT
</comment>
1049 <section id=
"Section13">
1050 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3165434"><bookmark_value>TANH function
</bookmark_value>
1052 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_TANHYP" id=
"bm_id3165446" localize=
"false"/>
1053 <paragraph xml-lang=
"en-US" id=
"hd_id3165434" role=
"heading" level=
"2" l10n=
"U"
1054 oldref=
"456">TANH
</paragraph>
1055 <paragraph xml-lang=
"en-US" id=
"par_id3165462" role=
"paragraph" l10n=
"U" oldref=
"457"><ahelp hid=
"HID_FUNC_TANHYP">Returns the hyperbolic tangent of a number.
</ahelp></paragraph>
1056 <paragraph xml-lang=
"en-US" id=
"hd_id3165480" role=
"heading" level=
"3" l10n=
"U"
1057 oldref=
"458">Syntax
</paragraph>
1058 <paragraph xml-lang=
"en-US" id=
"par_id3165494" role=
"code" l10n=
"U" oldref=
"459">TANH(Number)
</paragraph>
1059 <paragraph xml-lang=
"en-US" id=
"par_id3165508" role=
"paragraph" l10n=
"CHG" oldref=
"460">Returns the hyperbolic tangent of
<emph>Number
</emph>.
</paragraph>
1060 <paragraph xml-lang=
"en-US" id=
"hd_id3165527" role=
"heading" level=
"3" l10n=
"U"
1061 oldref=
"461">Example
</paragraph>
1062 <paragraph xml-lang=
"en-US" id=
"par_id3165541" role=
"paragraph" l10n=
"CHG" oldref=
"462">
1063 <item type=
"input">=TANH(
0)
</item> returns
0, the hyperbolic tangent of
0.
</paragraph><comment>see also COSH, SINH, COTH,
1064 ACOSH, ASINH, ATANH, ACOTH
</comment>
1066 <section id=
"Section12">
1067 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3165633"><bookmark_value>AutoFilter function; subtotals
</bookmark_value>
1068 <bookmark_value>sums;of filtered data
</bookmark_value>
1069 <bookmark_value>filtered data; sums
</bookmark_value>
1070 <bookmark_value>SUBTOTAL function
</bookmark_value>
1071 </bookmark><comment>mw made
"sums..." a two level entry
</comment>
1072 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_TEILERGEBNIS" id=
"bm_id3165644" localize=
"false"/>
1073 <paragraph xml-lang=
"en-US" id=
"hd_id3165633" role=
"heading" level=
"2" l10n=
"U"
1074 oldref=
"466">SUBTOTAL
</paragraph>
1075 <paragraph xml-lang=
"en-US" id=
"par_id3165682" role=
"paragraph" l10n=
"U" oldref=
"467"><ahelp hid=
"HID_FUNC_TEILERGEBNIS">Calculates subtotals.
</ahelp> If a range already contains subtotals, these are not used for further calculations. Use this function with the AutoFilters to take only the filtered records into account.
</paragraph>
1076 <paragraph xml-lang=
"en-US" id=
"hd_id3165704" role=
"heading" level=
"3" l10n=
"U"
1077 oldref=
"495">Syntax
</paragraph>
1078 <paragraph xml-lang=
"en-US" id=
"par_id3165717" role=
"code" l10n=
"U" oldref=
"496">SUBTOTAL(Function; Range)
</paragraph>
1079 <paragraph xml-lang=
"en-US" id=
"par_id3165731" role=
"paragraph" l10n=
"U" oldref=
"497"><emph>Function
</emph> is a number that stands for one of the following functions:
</paragraph>
1080 <table id=
"tbl_id3165752">
1083 <paragraph xml-lang=
"en-US" id=
"par_id3165782" role=
"paragraph" l10n=
"U" oldref=
"469">Function index
</paragraph>
1086 <paragraph xml-lang=
"en-US" id=
"par_id3165806" role=
"paragraph" l10n=
"U" oldref=
"470">Function
</paragraph>
1091 <paragraph xml-lang=
"en-US" id=
"par_id3165833" role=
"paragraph" l10n=
"U" oldref=
"471">1</paragraph>
1094 <paragraph xml-lang=
"en-US" id=
"par_id3165856" role=
"paragraph" l10n=
"U" oldref=
"472">AVERAGE
</paragraph>
1099 <paragraph xml-lang=
"en-US" id=
"par_id3165883" role=
"paragraph" l10n=
"U" oldref=
"473">2</paragraph>
1102 <paragraph xml-lang=
"en-US" id=
"par_id3165906" role=
"paragraph" l10n=
"U" oldref=
"474">COUNT
</paragraph>
1107 <paragraph xml-lang=
"en-US" id=
"par_id3165933" role=
"paragraph" l10n=
"U" oldref=
"475">3</paragraph>
1110 <paragraph xml-lang=
"en-US" id=
"par_id3165956" role=
"paragraph" l10n=
"U" oldref=
"476">COUNTA
</paragraph>
1115 <paragraph xml-lang=
"en-US" id=
"par_id3165983" role=
"paragraph" l10n=
"U" oldref=
"477">4</paragraph>
1118 <paragraph xml-lang=
"en-US" id=
"par_id3166006" role=
"paragraph" l10n=
"U" oldref=
"478">MAX
</paragraph>
1123 <paragraph xml-lang=
"en-US" id=
"par_id3166033" role=
"paragraph" l10n=
"U" oldref=
"479">5</paragraph>
1126 <paragraph xml-lang=
"en-US" id=
"par_id3166056" role=
"paragraph" l10n=
"U" oldref=
"480">MIN
</paragraph>
1131 <paragraph xml-lang=
"en-US" id=
"par_id3143316" role=
"paragraph" l10n=
"U" oldref=
"481">6</paragraph>
1134 <paragraph xml-lang=
"en-US" id=
"par_id3143339" role=
"paragraph" l10n=
"U" oldref=
"482">PRODUCT
</paragraph>
1139 <paragraph xml-lang=
"en-US" id=
"par_id3143366" role=
"paragraph" l10n=
"U" oldref=
"483">7</paragraph>
1142 <paragraph xml-lang=
"en-US" id=
"par_id3143389" role=
"paragraph" l10n=
"U" oldref=
"484">STDEV
</paragraph>
1147 <paragraph xml-lang=
"en-US" id=
"par_id3143416" role=
"paragraph" l10n=
"U" oldref=
"485">8</paragraph>
1150 <paragraph xml-lang=
"en-US" id=
"par_id3143439" role=
"paragraph" l10n=
"U" oldref=
"486">STDEVP
</paragraph>
1155 <paragraph xml-lang=
"en-US" id=
"par_id3143466" role=
"paragraph" l10n=
"U" oldref=
"487">9</paragraph>
1158 <paragraph xml-lang=
"en-US" id=
"par_id3143489" role=
"paragraph" l10n=
"U" oldref=
"488">SUM
</paragraph>
1163 <paragraph xml-lang=
"en-US" id=
"par_id3143516" role=
"paragraph" l10n=
"U" oldref=
"489">10</paragraph>
1166 <paragraph xml-lang=
"en-US" id=
"par_id3143539" role=
"paragraph" l10n=
"U" oldref=
"490">VAR
</paragraph>
1171 <paragraph xml-lang=
"en-US" id=
"par_id3143566" role=
"paragraph" l10n=
"U" oldref=
"491">11</paragraph>
1174 <paragraph xml-lang=
"en-US" id=
"par_id3143589" role=
"paragraph" l10n=
"U" oldref=
"492">VARP
</paragraph>
1179 <paragraph xml-lang=
"en-US" id=
"par_id3143606" role=
"paragraph" l10n=
"U" oldref=
"498"><emph>Range
</emph> is the range whose cells are included.
</paragraph>
1180 <paragraph xml-lang=
"en-US" id=
"hd_id3143625" role=
"heading" level=
"3" l10n=
"U"
1181 oldref=
"499">Example
</paragraph>
1182 <paragraph xml-lang=
"en-US" id=
"par_id3143638" role=
"paragraph" l10n=
"U" oldref=
"562">You have a table in the cell range A1:B5 containing cities in column A and accompanying figures in column B. You have used an AutoFilter so that you only see rows containing the city Hamburg. You want to see the sum of the figures that are displayed; that is, just the subtotal for the filtered rows. In this case the correct formula would be:
</paragraph>
1183 <paragraph xml-lang=
"en-US" id=
"par_id3143658" role=
"paragraph" l10n=
"U" oldref=
"563">
1184 <item type=
"input">=SUBTOTAL(
9;B2:B5)
</item>
1187 <section id=
"Section11">
1188 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3143672"><bookmark_value>Euro; converting
</bookmark_value>
1189 <bookmark_value>EUROCONVERT function
</bookmark_value>
1191 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_UMRECHNEN" id=
"bm_id3143684" localize=
"false"/>
1192 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_EUROCONVERT" id=
"bm_id0119200904282677" localize=
"false"/>
1193 <paragraph xml-lang=
"en-US" id=
"hd_id3143672" role=
"heading" level=
"2" l10n=
"CHG"
1194 oldref=
"564">EUROCONVERT
<comment>insert link in financial
</comment></paragraph>
1195 <paragraph xml-lang=
"en-US" id=
"par_id3143708" role=
"paragraph" l10n=
"CHG" oldref=
"565"><ahelp hid=
"HID_FUNC_UMRECHNEN">Converts between old European national currency and to and from Euros.
</ahelp></paragraph>
1196 <paragraph xml-lang=
"en-US" id=
"par_id3143731" role=
"heading" level=
"3" l10n=
"U"
1197 oldref=
"566"><emph>Syntax
</emph>
1199 <paragraph xml-lang=
"en-US" id=
"par_id3143748" role=
"code" l10n=
"CHG" oldref=
"567">EUROCONVERT(Value;
"From_currency";
"To_currency", full_precision, triangulation_precision)
</paragraph>
1200 <paragraph xml-lang=
"en-US" id=
"par_id3143763" role=
"paragraph" l10n=
"U" oldref=
"568"><emph>Value
</emph> is the amount of the currency to be converted.
</paragraph>
1201 <paragraph xml-lang=
"en-US" id=
"par_id3143782" role=
"paragraph" l10n=
"CHG" oldref=
"569"><emph>From_currency
</emph> and
<emph>To_currency
</emph> are the currency units to convert from and to respectively. These must be text, the official abbreviation for the currency (for example,
"EUR"). The rates (shown per Euro) were set by the European Commission.
</paragraph>
1202 <paragraph xml-lang=
"en-US" id=
"par_id0119200904301810" role=
"paragraph" l10n=
"NEW"><emph>Full_precision
</emph> is optional. If omitted or False, the result is rounded according to the decimals of the To currency. If Full_precision is True, the result is not rounded.
</paragraph>
1203 <paragraph xml-lang=
"en-US" id=
"par_id0119200904301815" role=
"paragraph" l10n=
"NEW"><emph>Triangulation_precision
</emph> is optional. If Triangulation_precision is given and
>=
3, the intermediate result of a triangular conversion (currency1,EUR,currency2) is rounded to that precision. If Triangulation_precision is omitted, the intermediate result is not rounded. Also if To currency is
"EUR", Triangulation_precision is used as if triangulation was needed and conversion from EUR to EUR was applied.
</paragraph>
1204 <paragraph xml-lang=
"en-US" id=
"par_id3143819" role=
"heading" level=
"3" l10n=
"U"
1205 oldref=
"570"><emph>Examples
</emph>
1207 <paragraph xml-lang=
"en-US" id=
"par_id3143837" role=
"paragraph" l10n=
"U" oldref=
"571">
1208 <item type=
"input">=EUROCONVERT(
100;
"ATS";
"EUR")
</item> converts
100 Austrian Schillings into Euros.
</paragraph>
1209 <paragraph xml-lang=
"en-US" id=
"par_id3143853" role=
"paragraph" l10n=
"U" oldref=
"572">
1210 <item type=
"input">=EUROCONVERT(
100;
"EUR";
"DEM")
</item> converts
100 Euros into German Marks.
</paragraph>
1212 <section id=
"convert">
1213 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id0908200902090676"><bookmark_value>CONVERT function
</bookmark_value>
1215 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_UMRECHNEN" id=
"bm_id0908200902093111" localize=
"false"/>
1216 <paragraph xml-lang=
"en-US" id=
"hd_id0908200902074836" role=
"heading" level=
"2" l10n=
"NEW">CONVERT
</paragraph>
1217 <paragraph xml-lang=
"en-US" id=
"par_id0908200902131122" role=
"paragraph" l10n=
"NEW"><ahelp hid=
".">Converts a value from one unit of measurement to another unit of measurement. The conversion factors are given in a list in the configuration.
</ahelp></paragraph>
1218 <paragraph xml-lang=
"en-US" id=
"par_id0908200902475420" role=
"paragraph" l10n=
"NEW">At one time the list of conversion factors included the legacy European currencies and the Euro (see examples below). We suggest using the new function EUROCONVERT for converting these currencies.
</paragraph>
1219 <paragraph xml-lang=
"en-US" id=
"hd_id0908200902131071" role=
"heading" level=
"3" l10n=
"NEW">Syntax
</paragraph>
1220 <paragraph xml-lang=
"en-US" id=
"par_id0908200902131191" role=
"code" l10n=
"NEW">CONVERT(value;
"text";
"text")
</paragraph>
1221 <paragraph xml-lang=
"en-US" id=
"hd_id0908200902131152" role=
"heading" level=
"3" l10n=
"NEW">Example
</paragraph>
1222 <paragraph xml-lang=
"en-US" id=
"par_id090820090213112" role=
"paragraph" l10n=
"NEW">
1223 <item type=
"input">=CONVERT(
100;
"ATS";
"EUR")
</item> returns the Euro value of
100 Austrian Schillings.
</paragraph>
1224 <paragraph xml-lang=
"en-US" id=
"par_id0908200902475431" role=
"paragraph" l10n=
"NEW">=CONVERT(
100;
"EUR";
"DEM") converts
100 Euros into German Marks.
</paragraph>
1226 <section id=
"Section10">
1227 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3157177"><bookmark_value>ODD function
</bookmark_value>
1228 <bookmark_value>rounding;up/down to nearest odd integer
</bookmark_value>
1229 </bookmark><comment>mw added one entry
</comment>
1230 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_UNGERADE" id=
"bm_id3157188" localize=
"false"/>
1231 <paragraph xml-lang=
"en-US" id=
"hd_id3157177" role=
"heading" level=
"2" l10n=
"U"
1232 oldref=
"502">ODD
</paragraph>
1233 <paragraph xml-lang=
"en-US" id=
"par_id3157205" role=
"paragraph" l10n=
"CHG" oldref=
"503"><ahelp hid=
"HID_FUNC_UNGERADE">Rounds a positive number up to the nearest odd integer and a negative number down to the nearest odd integer.
</ahelp></paragraph>
1234 <paragraph xml-lang=
"en-US" id=
"hd_id3157223" role=
"heading" level=
"3" l10n=
"U"
1235 oldref=
"504">Syntax
</paragraph>
1236 <paragraph xml-lang=
"en-US" id=
"par_id3157237" role=
"code" l10n=
"U" oldref=
"505">ODD(Number)
</paragraph>
1237 <paragraph xml-lang=
"en-US" id=
"par_id3157250" role=
"paragraph" l10n=
"CHG" oldref=
"506"> Returns
<emph>Number
</emph> rounded to the next odd integer up, away from zero.
</paragraph>
1238 <paragraph xml-lang=
"en-US" id=
"hd_id3157270" role=
"heading" level=
"3" l10n=
"U"
1239 oldref=
"507">Example
</paragraph>
1240 <paragraph xml-lang=
"en-US" id=
"par_id3157283" role=
"paragraph" l10n=
"CHG" oldref=
"508">
1241 <item type=
"input">=ODD(
1.2)
</item> returns
3.
</paragraph>
1242 <paragraph xml-lang=
"en-US" id=
"par_id8746910" role=
"paragraph" l10n=
"NEW">
1243 <item type=
"input">=ODD(
1)
</item> returns
1.
</paragraph>
1244 <paragraph xml-lang=
"en-US" id=
"par_id9636524" role=
"paragraph" l10n=
"NEW">
1245 <item type=
"input">=ODD(
0)
</item> returns
1.
</paragraph>
1246 <paragraph xml-lang=
"en-US" id=
"par_id5675527" role=
"paragraph" l10n=
"NEW">
1247 <item type=
"input">=ODD(-
3.1)
</item> returns -
5.
</paragraph><comment>see also CEILING, FLOOR, EVEN, MROUND,
1248 INT, TRUNC, ROUND, ROUNDDOWN, ROUNDUP
</comment>
1250 <section id=
"Section9">
1251 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3157404"><bookmark_value>FLOOR function
</bookmark_value>
1252 <bookmark_value>rounding;down to nearest multiple of significance
</bookmark_value>
1253 </bookmark><comment>mw added one entry
</comment>
1254 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_UNTERGRENZE" id=
"bm_id3157415" localize=
"false"/>
1255 <paragraph xml-lang=
"en-US" id=
"hd_id3157404" role=
"heading" level=
"2" l10n=
"U"
1256 oldref=
"512">FLOOR
</paragraph>
1257 <paragraph xml-lang=
"en-US" id=
"par_id3157432" role=
"paragraph" l10n=
"U" oldref=
"513"><ahelp hid=
"HID_FUNC_UNTERGRENZE">Rounds a number down to the nearest multiple of Significance.
</ahelp></paragraph>
1258 <paragraph xml-lang=
"en-US" id=
"hd_id3157451" role=
"heading" level=
"3" l10n=
"U"
1259 oldref=
"514">Syntax
</paragraph>
1260 <paragraph xml-lang=
"en-US" id=
"par_id3157464" role=
"code" l10n=
"U" oldref=
"515">FLOOR(Number; Significance; Mode)
</paragraph>
1261 <paragraph xml-lang=
"en-US" id=
"par_id3157478" role=
"paragraph" l10n=
"U" oldref=
"516"><emph>Number
</emph> is the number that is to be rounded down.
</paragraph>
1262 <paragraph xml-lang=
"en-US" id=
"par_id3157497" role=
"paragraph" l10n=
"U" oldref=
"517"><emph>Significance
</emph> is the value to whose multiple the number is to be rounded down.
</paragraph>
1263 <paragraph xml-lang=
"en-US" id=
"par_id3157517" role=
"paragraph" l10n=
"CHG" oldref=
"561"><emph>Mode
</emph> is an optional value. If the Mode value is given and not equal to zero, and if Number and Significance are negative, then rounding is done based on the absolute value of the number. This parameter is ignored when exporting to MS Excel as Excel does not know any third parameter.
</paragraph>
1264 <paragraph xml-lang=
"en-US" id=
"par_id3163894" role=
"warning" l10n=
"CHG" oldref=
"630">If both parameters Number and Significance are negative, and if the Mode value is equal to zero or is not specified, then the results in $[officename] Calc and Excel will differ after exporting. If you export the spreadsheet to Excel, use Mode=
1 to see the same results in Excel as in Calc.
</paragraph>
1265 <paragraph xml-lang=
"en-US" id=
"hd_id3163932" role=
"heading" level=
"3" l10n=
"U"
1266 oldref=
"518">Example
</paragraph>
1267 <paragraph xml-lang=
"en-US" id=
"par_id3163945" role=
"paragraph" l10n=
"CHG" oldref=
"519">
1268 <item type=
"input">=FLOOR( -
11;-
2)
</item> returns -
12</paragraph>
1269 <paragraph xml-lang=
"en-US" id=
"par_id3163966" role=
"paragraph" l10n=
"CHG" oldref=
"520">
1270 <item type=
"input">=FLOOR( -
11;-
2;
0)
</item> returns -
12</paragraph>
1271 <paragraph xml-lang=
"en-US" id=
"par_id3163988" role=
"paragraph" l10n=
"CHG" oldref=
"521">
1272 <item type=
"input">=FLOOR( -
11;-
2;
1)
</item> returns -
10</paragraph><comment>see also CEILING, EVEN, ODD, MROUND,
1273 INT, TRUNC, ROUND, ROUNDDOWN, ROUNDUP,
</comment>
1275 <section id=
"Section8">
1276 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3164086"><bookmark_value>SIGN function
</bookmark_value>
1277 <bookmark_value>algebraic signs
</bookmark_value>
1278 </bookmark><comment>mw added one entry
</comment>
1279 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_VORZEICHEN" id=
"bm_id3164098" localize=
"false"/>
1280 <paragraph xml-lang=
"en-US" id=
"hd_id3164086" role=
"heading" level=
"2" l10n=
"U"
1281 oldref=
"523">SIGN
</paragraph>
1282 <paragraph xml-lang=
"en-US" id=
"par_id3164115" role=
"paragraph" l10n=
"CHG" oldref=
"524"><ahelp hid=
"HID_FUNC_VORZEICHEN">Returns the sign of a number. Returns
1 if the number is positive, -
1 if negative and
0 if zero.
</ahelp></paragraph>
1283 <paragraph xml-lang=
"en-US" id=
"hd_id3164136" role=
"heading" level=
"3" l10n=
"U"
1284 oldref=
"525">Syntax
</paragraph>
1285 <paragraph xml-lang=
"en-US" id=
"par_id3164150" role=
"code" l10n=
"U" oldref=
"526">SIGN(Number)
</paragraph>
1286 <paragraph xml-lang=
"en-US" id=
"par_id3164164" role=
"paragraph" l10n=
"U" oldref=
"527"><emph>Number
</emph> is the number whose sign is to be determined.
</paragraph>
1287 <paragraph xml-lang=
"en-US" id=
"hd_id3164183" role=
"heading" level=
"3" l10n=
"U"
1288 oldref=
"528">Example
</paragraph>
1289 <paragraph xml-lang=
"en-US" id=
"par_id3164197" role=
"paragraph" l10n=
"CHG" oldref=
"529">
1290 <item type=
"input">=SIGN(
3.4)
</item> returns
1.
</paragraph>
1291 <paragraph xml-lang=
"en-US" id=
"par_id3164212" role=
"paragraph" l10n=
"CHG" oldref=
"530">
1292 <item type=
"input">=SIGN(-
4.5)
</item> returns -
1.
</paragraph><comment>see also ABS
</comment>
1294 <section id=
"Section7">
1295 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3164252"><bookmark_value>MROUND function
</bookmark_value>
1296 <bookmark_value>nearest multiple
</bookmark_value>
1297 </bookmark><comment>mw added one entry
</comment>
1298 <bookmark xml-lang=
"en-US" branch=
"hid/HID_AAI_FUNC_MROUND" id=
"bm_id3164264" localize=
"false"/>
1299 <paragraph xml-lang=
"en-US" id=
"hd_id3164252" role=
"heading" level=
"2" l10n=
"E"
1300 oldref=
"658">MROUND
</paragraph>
1301 <paragraph xml-lang=
"en-US" id=
"par_id3164288" role=
"paragraph" l10n=
"CHG" oldref=
"659"><ahelp hid=
"HID_AAI_FUNC_MROUND">Returns a number rounded to the nearest multiple of another number.
</ahelp></paragraph>
1302 <paragraph xml-lang=
"en-US" id=
"hd_id3164306" role=
"heading" level=
"3" l10n=
"U"
1303 oldref=
"660">Syntax
</paragraph>
1304 <paragraph xml-lang=
"en-US" id=
"par_id3164320" role=
"code" l10n=
"U" oldref=
"661">MROUND(Number; Multiple)
</paragraph>
1305 <paragraph xml-lang=
"en-US" id=
"par_id3486434" role=
"paragraph" l10n=
"NEW">Returns
<emph>Number
</emph> rounded to the nearest multiple of
<emph>Multiple
</emph>.
</paragraph>
1306 <paragraph xml-lang=
"en-US" id=
"par_id3068636" role=
"paragraph" l10n=
"NEW">An alternative implementation would be
<item type=
"literal">Multiple * ROUND(Number/Multiple)
</item>.
</paragraph>
1307 <paragraph xml-lang=
"en-US" id=
"hd_id3164333" role=
"heading" level=
"3" l10n=
"U"
1308 oldref=
"662">Example
</paragraph>
1309 <paragraph xml-lang=
"en-US" id=
"par_id3164347" role=
"paragraph" l10n=
"CHG" oldref=
"663">
1310 <item type=
"input">=MROUND(
15.5;
3)
</item> returns
15, as
15.5 is closer to
15 (=
3*
5) than to
18 (=
3*
6).
</paragraph>
1311 <paragraph xml-lang=
"en-US" id=
"par_idN14DD6" role=
"paragraph" l10n=
"CHG">
1312 <item type=
"input">=MROUND(
1.4;
0.5)
</item> returns
1.5 (=
0.5*
3).
</paragraph><comment>see also CEILING, FLOOR, EVEN, ODD,
1313 INT, TRUNC, ROUND, ROUNDDOWN, ROUNDUP
</comment>
1315 <section id=
"Section6">
1316 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3164375"><bookmark_value>SQRT function
</bookmark_value>
1317 <bookmark_value>square roots;positive numbers
</bookmark_value>
1318 </bookmark><comment>mw added one entry
</comment>
1319 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_WURZEL" id=
"bm_id3164387" localize=
"false"/>
1320 <paragraph xml-lang=
"en-US" id=
"hd_id3164375" role=
"heading" level=
"2" l10n=
"U"
1321 oldref=
"532">SQRT
</paragraph>
1322 <paragraph xml-lang=
"en-US" id=
"par_id3164404" role=
"paragraph" l10n=
"CHG" oldref=
"533"><ahelp hid=
"HID_FUNC_WURZEL">Returns the positive square root of a number.
</ahelp></paragraph>
1323 <paragraph xml-lang=
"en-US" id=
"hd_id3164424" role=
"heading" level=
"3" l10n=
"U"
1324 oldref=
"534">Syntax
</paragraph>
1325 <paragraph xml-lang=
"en-US" id=
"par_id3164437" role=
"code" l10n=
"U" oldref=
"535">SQRT(Number)
</paragraph>
1326 <paragraph xml-lang=
"en-US" id=
"par_id3164451" role=
"paragraph" l10n=
"CHG" oldref=
"536">Returns the positive square root of
<emph>Number
</emph>.
</paragraph>
1327 <paragraph xml-lang=
"en-US" id=
"par_id6870021" role=
"paragraph" l10n=
"NEW"> Number must be positive.
</paragraph>
1328 <paragraph xml-lang=
"en-US" id=
"hd_id3164471" role=
"heading" level=
"3" l10n=
"U"
1329 oldref=
"537">Example
</paragraph>
1330 <paragraph xml-lang=
"en-US" id=
"par_id3164484" role=
"paragraph" l10n=
"CHG" oldref=
"538">
1331 <item type=
"input">=SQRT(
16)
</item> returns
4.
</paragraph>
1332 <paragraph xml-lang=
"en-US" id=
"par_id3591723" role=
"paragraph" l10n=
"NEW">
1333 <item type=
"input">=SQRT(-
16)
</item> returns an
<item type=
"literal">invalid argument
</item> error.
</paragraph><comment>see also SQRTPI, POWER
</comment>
1335 <section id=
"Section5">
1336 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3164560"><bookmark_value>SQRTPI function
</bookmark_value>
1337 <bookmark_value>square roots;products of Pi
</bookmark_value>
1338 </bookmark><comment>mw added one entry
</comment>
1339 <bookmark xml-lang=
"en-US" branch=
"hid/HID_AAI_FUNC_SQRTPI" id=
"bm_id3164572" localize=
"false"/>
1340 <paragraph xml-lang=
"en-US" id=
"hd_id3164560" role=
"heading" level=
"2" l10n=
"E"
1341 oldref=
"665">SQRTPI
</paragraph>
1342 <paragraph xml-lang=
"en-US" id=
"par_id3164596" role=
"paragraph" l10n=
"CHG" oldref=
"666"><ahelp hid=
"HID_AAI_FUNC_SQRTPI">Returns the square root of (PI times a number).
</ahelp></paragraph>
1343 <paragraph xml-lang=
"en-US" id=
"hd_id3164614" role=
"heading" level=
"3" l10n=
"U"
1344 oldref=
"667">Syntax
</paragraph>
1345 <paragraph xml-lang=
"en-US" id=
"par_id3164627" role=
"code" l10n=
"U" oldref=
"668">SQRTPI(Number)
</paragraph>
1346 <paragraph xml-lang=
"en-US" id=
"par_id1501510" role=
"paragraph" l10n=
"NEW">Returns the positive square root of (PI multiplied by
<emph>Number
</emph>).
</paragraph>
1347 <paragraph xml-lang=
"en-US" id=
"par_id9929197" role=
"paragraph" l10n=
"NEW">This is equivalent to
<item type=
"literal">SQRT(PI()*Number)
</item>.
</paragraph>
1348 <paragraph xml-lang=
"en-US" id=
"hd_id3164641" role=
"heading" level=
"3" l10n=
"U"
1349 oldref=
"669">Example
</paragraph>
1350 <paragraph xml-lang=
"en-US" id=
"par_id3164654" role=
"paragraph" l10n=
"CHG" oldref=
"670">
1351 <item type=
"input">=SQRTPI(
2)
</item> returns the squareroot of (
2PI), approximately
2.506628.
</paragraph><comment>see also SQRT
</comment>
1353 <section id=
"Section4">
1354 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3164669"><bookmark_value>random numbers; between limits
</bookmark_value>
1355 <bookmark_value>RANDBETWEEN function
</bookmark_value>
1356 </bookmark><comment>mw changed
"random numbers;"</comment>
1357 <bookmark xml-lang=
"en-US" branch=
"hid/HID_AAI_FUNC_RANDBETWEEN" id=
"bm_id3164680" localize=
"false"/>
1358 <paragraph xml-lang=
"en-US" id=
"hd_id3164669" role=
"heading" level=
"2" l10n=
"E"
1359 oldref=
"671">RANDBETWEEN
</paragraph>
1360 <paragraph xml-lang=
"en-US" id=
"par_id3164711" role=
"paragraph" l10n=
"CHG" oldref=
"672"><ahelp hid=
"HID_AAI_FUNC_RANDBETWEEN">Returns an integer random number in a specified range.
</ahelp></paragraph>
1361 <paragraph xml-lang=
"en-US" id=
"hd_id3164745" role=
"heading" level=
"3" l10n=
"U"
1362 oldref=
"673">Syntax
</paragraph>
1363 <paragraph xml-lang=
"en-US" id=
"par_id3164758" role=
"code" l10n=
"U" oldref=
"674">RANDBETWEEN(Bottom; Top)
</paragraph>
1364 <paragraph xml-lang=
"en-US" id=
"par_id7112338" role=
"paragraph" l10n=
"NEW">Returns an integer random number between integers
<emph>Bottom
</emph> and
<emph>Top
</emph> (both inclusive).
</paragraph>
1365 <paragraph xml-lang=
"en-US" id=
"par_id2855616" role=
"paragraph" l10n=
"NEW">This function produces a new random number each time Calc recalculates. To force Calc to recalculate manually press Shift+
<switchinline select=
"sys"><caseinline select=
"MAC">Command
1366 </caseinline><defaultinline>Ctrl
</defaultinline></switchinline>+F9.
</paragraph>
1367 <paragraph xml-lang=
"en-US" id=
"par_id2091433" role=
"paragraph" l10n=
"NEW">To generate random numbers which never recalculate, copy cells containing this function, and use
<item type=
"menuitem">Edit - Paste Special
</item> (with
<item type=
"menuitem">Paste All
</item> and
<item type=
"menuitem">Formulas
</item> not marked and
<item type=
"menuitem">Numbers
</item> marked).
</paragraph>
1368 <paragraph xml-lang=
"en-US" id=
"hd_id3164772" role=
"heading" level=
"3" l10n=
"U"
1369 oldref=
"675">Example
</paragraph>
1370 <paragraph xml-lang=
"en-US" id=
"par_id3164785" role=
"paragraph" l10n=
"U" oldref=
"676">
1371 <item type=
"input">=RANDBETWEEN(
20;
30)
</item> returns an integer of between
20 and
30.
</paragraph><comment>see also RAND
</comment>
1373 <section id=
"Section3">
1374 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3164800"><bookmark_value>RAND function
</bookmark_value>
1375 <bookmark_value>random numbers;between
0 and
1</bookmark_value>
1376 </bookmark><comment>mw added one entry
</comment>
1377 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_ZUFALLSZAHL" id=
"bm_id3164812" localize=
"false"/>
1378 <paragraph xml-lang=
"en-US" id=
"hd_id3164800" role=
"heading" level=
"2" l10n=
"U"
1379 oldref=
"542">RAND
</paragraph>
1380 <paragraph xml-lang=
"en-US" id=
"par_id3164829" role=
"paragraph" l10n=
"CHG" oldref=
"543"><ahelp hid=
"HID_FUNC_ZUFALLSZAHL">Returns a random number between
0 and
1.
</ahelp><comment>The value of
0 can be returned, the value of
1 not.
</comment><comment>this is really true after issue
53642 will be fixed
</comment></paragraph>
1381 <paragraph xml-lang=
"en-US" id=
"hd_id3164870" role=
"heading" level=
"3" l10n=
"U"
1382 oldref=
"545">Syntax
</paragraph>
1383 <paragraph xml-lang=
"en-US" id=
"par_id3164884" role=
"code" l10n=
"U" oldref=
"546">RAND()
</paragraph>
1384 <paragraph xml-lang=
"en-US" id=
"par_id5092318" role=
"paragraph" l10n=
"NEW">This function produces a new random number each time Calc recalculates. To force Calc to recalculate manually press Shift+
<switchinline select=
"sys"><caseinline select=
"MAC">Command
1385 </caseinline><defaultinline>Ctrl
</defaultinline></switchinline>+F9.
</paragraph>
1386 <paragraph xml-lang=
"en-US" id=
"par_id9312417" role=
"paragraph" l10n=
"NEW">To generate random numbers which never recalculate, copy cells each containing =RAND(), and use
<item type=
"menuitem">Edit - Paste Special
</item> (with
<item type=
"menuitem">Paste All
</item> and
<item type=
"menuitem">Formulas
</item> not marked and
<item type=
"menuitem">Numbers
</item> marked).
</paragraph>
1387 <paragraph xml-lang=
"en-US" id=
"hd_id9089022" role=
"heading" level=
"3" l10n=
"NEW">Example
</paragraph>
1388 <paragraph xml-lang=
"en-US" id=
"par_id9569078" role=
"paragraph" l10n=
"NEW">
1389 <item type=
"input">=RAND()
</item> returns a random number between
0 and
1.
</paragraph><comment>see also RANDBETWEEN
1392 <section id=
"Section2">
1393 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3164897"><bookmark_value>COUNTIF function
</bookmark_value>
1394 <bookmark_value>counting;specified cells
</bookmark_value>
1395 </bookmark><comment>mw added one entry
</comment>
1396 <bookmark xml-lang=
"en-US" branch=
"hid/HID_FUNC_ZAEHLENWENN" id=
"bm_id3164909" localize=
"false"/>
1397 <paragraph xml-lang=
"en-US" id=
"hd_id3164897" role=
"heading" level=
"2" l10n=
"U"
1398 oldref=
"547">COUNTIF
</paragraph>
1399 <paragraph xml-lang=
"en-US" id=
"par_id3164926" role=
"paragraph" l10n=
"CHG" oldref=
"548"><ahelp hid=
"HID_FUNC_ZAEHLENWENN">Returns the number of cells that meet with certain criteria within a cell range.
</ahelp></paragraph>
1400 <embed href=
"text/shared/00/00000001.xhp#regulaer"/>
1401 <paragraph xml-lang=
"en-US" id=
"hd_id3164953" role=
"heading" level=
"3" l10n=
"U"
1402 oldref=
"549">Syntax
</paragraph>
1403 <paragraph xml-lang=
"en-US" id=
"par_id3164967" role=
"code" l10n=
"U" oldref=
"550">COUNTIF(Range; Criteria)
</paragraph>
1404 <paragraph xml-lang=
"en-US" id=
"par_id3164980" role=
"paragraph" l10n=
"U" oldref=
"551"><emph>Range
</emph> is the range to which the criteria are to be applied.
</paragraph>
1405 <paragraph xml-lang=
"en-US" id=
"par_id3165000" role=
"paragraph" l10n=
"CHG" oldref=
"552"><emph>Criteria
</emph> indicates the criteria in the form of a number, an expression or a character string. These criteria determine which cells are counted. You may also enter a search text in the form of a regular expression, e.g. b.* for all words that begin with b. You may also indicate a cell range that contains the search criterion. If you search for literal text, enclose the text in double quotes.
</paragraph>
1406 <paragraph xml-lang=
"en-US" id=
"hd_id3165037" role=
"heading" level=
"3" l10n=
"U"
1407 oldref=
"553">Example
</paragraph>
1408 <paragraph xml-lang=
"en-US" id=
"par_id3166505" role=
"paragraph" l10n=
"CHG" oldref=
"627">A1:A10 is a cell range containing the numbers
<item type=
"input">2000</item> to
<item type=
"input">2009</item>. Cell B1 contains the number
<item type=
"input">2006</item>. In cell B2, you enter a formula:
</paragraph>
1409 <paragraph xml-lang=
"en-US" id=
"par_id3581652" role=
"paragraph" l10n=
"NEW">
1410 <item type=
"input">=COUNTIF(A1:A10;
2006)
</item> - this returns
1</paragraph>
1411 <paragraph xml-lang=
"en-US" id=
"par_id708639" role=
"paragraph" l10n=
"NEW">
1412 <item type=
"input">=COUNTIF(A1:A10;B1)
</item> - this returns
1</paragraph>
1413 <paragraph xml-lang=
"en-US" id=
"par_id5169225" role=
"paragraph" l10n=
"NEW">
1414 <item type=
"input">=COUNTIF(A1:A10;
">=2006")
</item>- this returns
4</paragraph>
1415 <paragraph xml-lang=
"en-US" id=
"par_id2118594" role=
"paragraph" l10n=
"NEW">
1416 <item type=
"input">=COUNTIF(A1:A10;
"<"&B1)
</item> - when B1 contains
<item type=
"input">2006</item>, this returns
6</paragraph>
1417 <paragraph xml-lang=
"en-US" id=
"par_id166020" role=
"paragraph" l10n=
"NEW">
1418 <item type=
"input">=COUNTIF(A1:A10;C2)
</item> where cell C2 contains the text
<item type=
"input">>2006</item> counts the number of cells in the range A1:A10 which are
>2006 </paragraph>
1419 <paragraph xml-lang=
"en-US" id=
"par_id6386913" role=
"paragraph" l10n=
"NEW">To count only negative numbers:
<item type=
"input">=COUNTIF(A1:A10;
"<0")
</item>
1423 <section id=
"relatedtopics">
1424 <embed href=
"text/scalc/01/04060100.xhp#drking"/>