| Server IP : 121.121.20.254 / Your IP : 216.73.217.141 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Program Files/LibreOffice/help/en-US/text/scalc/01/ |
Upload File : |
<!DOCTYPE html>
<html lang="en-US" dir="ltr">
<head>
<base href="../../../../">
<noscript><meta http-equiv="refresh" content="0; URL=../../../../en-US/noscript.html"></noscript>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Mathematical Functions</title>
<link rel="shortcut icon" href="media/navigation/favicon.ico">
<link type="text/css" href="normalize.css" rel="Stylesheet">
<link type="text/css" href="prism.css" rel="Stylesheet">
<link type="text/css" href="default.css" rel="Stylesheet">
<script type="text/javascript" src="polyfills.js"></script><script type="text/javascript" src="languages.js"></script><script type="text/javascript" src="en-US/langnames.js"></script><script type="text/javascript" src="flexsearch.debug.js"></script><script type="text/javascript" src="prism.js"></script><script type="text/javascript" src="help2.js" defer></script><script type="text/javascript" src="a11y-toggle.js" defer></script><script type="text/javascript" src="paginathing.js" defer></script><script type="text/javascript" src="en-US/bookmarks.js" defer></script><script type="text/javascript" src="en-US/contents.js" defer></script><script type="text/javascript" src="help.js" defer></script><meta name="viewport" content="width=device-width,initial-scale=1">
</head>
<body>
<header id="TopLeftHeader"><a class="symbol" href="en-US/text/shared/05/new_help.html"><div></div></a><a class="logo" href="en-US/text/shared/05/new_help.html"><p dir="auto">LibreOffice 24.2 Help</p></a><div class="dropdowns"><div class="modules">
<button type="button" data-a11y-toggle="modules-nav" id="modules" aria-haspopup="true" aria-expanded="false" aria-controls="modules-nav">Module</button><nav id="modules-nav" hidden=""></nav>
</div></div></header><aside class="leftside"><input id="accordion-1" name="accordion-menu" type="checkbox"><label for="accordion-1" dir="auto">Contents</label><div id="Contents" class="contents-treeview"></div></aside><div id="SearchFrame"><div id="Bookmarks">
<input id="search-bar" type="search" class="search" placeholder="Search in bookmarks for chosen module" dir="auto"><div class="nav-container" tabindex="0"><nav class="index" dir="auto"></nav></div>
</div></div>
<div id="DisplayArea" itemprop="softwareHelp" itemscope="true" itemtype="http://schema.org/SoftwareApplication">
<a name="bm_id3147124"></a>
<meta itemprop="keywords" content="mathematical functions">
<meta itemprop="keywords" content="Function Wizard, mathematical">
<meta itemprop="keywords" content="functions, mathematical functions">
<meta itemprop="keywords" content="trigonometric functions">
<h1 id="hd_id3147124" dir="auto">
<a name="math_functions_h1"></a>Mathematical Functions</h1>
<p id="par_id3154943" class="paragraph" dir="auto"><a name="mathematiktext"></a>This category contains the <span class="emph">Mathematical</span> functions for Calc. To open the <span class="emph">Function Wizard</span>, choose <a target="_top" href="en-US/text/scalc/01/04060000.html"><span class="emph">Insert - Function</span></a>.</p>
<a name="aggregate"></a>
<h2 id="hd_id7145084" dir="auto"><a target="_top" href="en-US/text/scalc/01/func_aggregate.html">AGGREGATE</a></h2>
<p id="par_id323373151810412" class="paragraph" dir="auto">This function returns an aggregate result of the calculations in the range. You can use different aggregate functions listed below. The Aggregate function enables you to omit hidden rows, errors, SUBTOTAL and other AGGREGATE function results in the calculation.</p>
<a name="Section67"></a>
<div class="embedded">
<a name="func_rawsubtract"></a>
<h2 id="hd_2016112109231" dir="auto"><a target="_top" href="en-US/text/scalc/01/func_rawsubtract.html">RAWSUBTRACT</a></h2>
<p id="par_2016112109232" class="paragraph" dir="auto"><span class="avis">Subtracts a set of numbers and gives the result without eliminating small roundoff errors.</span></p>
</div>
<a name="sum"></a>
<h2 id="hd_id841636542200276" dir="auto"><a target="_top" href="en-US/text/scalc/01/func_sum.html">SUM</a></h2>
<p id="par_id301636542246396" class="paragraph" dir="auto">Adds a set of numbers.</p>
<a name="color"></a>
<div class="embedded">
<a name="func_color"></a>
<h2 id="hd_id456845684568" dir="auto"><a target="_top" href="en-US/text/scalc/01/func_color.html">COLOR</a></h2>
<p id="par_id1102201617001848" class="paragraph" dir="auto"><span class="avis">Return a numeric value calculated by a combination of three colors (red, green and blue) and the alpha channel, in the RGBA color system.</span> The result depends on the color system used by your computer.</p>
</div>
<a name="sumifs"></a>
<h2 id="hd_id72921259523046" dir="auto"><a target="_top" href="en-US/text/scalc/01/func_sumifs.html">SUMIFS</a></h2>
<p id="par_id131512822630259" class="paragraph" dir="auto">Returns the sum of the values of cells in a range that meets multiple criteria in multiple ranges.</p>
<a name="Section1"></a>
<a name="bm_id3146944"></a>
<meta itemprop="keywords" content="ABS function">
<meta itemprop="keywords" content="absolute values">
<meta itemprop="keywords" content="values,absolute">
<a name="bm_id3150695"></a>
<h2 id="hd_id3146944" dir="auto">ABS</h2>
<p id="par_id3154546" class="paragraph" dir="auto"><span class="avis">Returns the absolute value of a number.</span></p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3147475" class="code" dir="auto">ABS(Number)</p>
<p id="par_id3148438" class="paragraph" dir="auto"><span class="emph">Number</span> is the number whose absolute value is to be calculated. The absolute value of a number is its value without the +/- sign.</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3152787" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=ABS(-56)</span> returns 56.</p>
<p id="par_id3148752" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=ABS(12)</span> returns 12.</p>
<p id="par_id320139" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=ABS(0)</span> returns 0.</p>
<a name="Section61"></a>
<a name="bm_id3153114"></a>
<meta itemprop="keywords" content="ACOS function">
<a name="bm_id3155952"></a>
<h2 id="hd_id3153114" dir="auto">ACOS</h2>
<p id="par_id3145163" class="paragraph" dir="auto"><span class="avis">Returns the inverse trigonometric cosine of a number.</span></p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3150020" class="code" dir="auto">ACOS(Number)</p>
<p id="par_id3159134" class="paragraph" dir="auto">This function returns the inverse trigonometric cosine of <span class="emph">Number</span>, that is the angle (in radians) whose cosine is Number. The angle returned is between 0 and PI.</p>
<p id="par_id679647" class="paragraph" dir="auto">To return the angle in degrees, use the DEGREES function.</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3150128" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=ACOS(-1)</span> returns 3.14159265358979 (PI radians)</p>
<p id="par_id8792382" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=DEGREES(ACOS(0.5))</span> returns 60. The cosine of 60 degrees is 0.5.</p>
<div class="embedded">
<a name="trigon"></a>
<p id="par_id161521663319918" class="paragraph" dir="auto"></p>
</div>
<a name="Section60"></a>
<a name="bm_id3145355"></a>
<meta itemprop="keywords" content="ACOSH function">
<a name="bm_id3148386"></a>
<h2 id="hd_id3145355" dir="auto">ACOSH</h2>
<p id="par_id3157993" class="paragraph" dir="auto"><span class="avis">Returns the inverse hyperbolic cosine of a number.</span></p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3151017" class="code" dir="auto">ACOSH(Number)</p>
<p id="par_id3149000" class="paragraph" dir="auto">This function returns the inverse hyperbolic cosine of <span class="emph">Number</span>, that is the number whose hyperbolic cosine is Number.</p>
<p id="par_id6393932" class="paragraph" dir="auto">Number must be greater than or equal to 1.</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3145629" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=ACOSH(1)</span> returns 0.</p>
<p id="par_id951567" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=ACOSH(COSH(4))</span> returns 4.</p>
<div class="embedded">
<a name="trigon"></a>
<p id="par_id161521663319918" class="paragraph" dir="auto"></p>
</div>
<a name="Section59"></a>
<a name="bm_id3149027"></a>
<meta itemprop="keywords" content="ACOT function">
<a name="bm_id3154634"></a>
<h2 id="hd_id3149027" dir="auto">ACOT</h2>
<p id="par_id3155818" class="paragraph" dir="auto"><span class="avis">Returns the inverse cotangent (the arccotangent) of the given number.</span></p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3158419" class="code" dir="auto">ACOT(Number)</p>
<p id="par_id3154948" class="paragraph" dir="auto">This function returns the inverse trigonometric cotangent of <span class="emph">Number</span>, that is the angle (in radians) whose cotangent is Number. The angle returned is between 0 and PI.</p>
<p id="par_id5834528" class="paragraph" dir="auto">To return the angle in degrees, use the DEGREES function.</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3155375" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=ACOT(1)</span> returns 0.785398163397448 (PI/4 radians).</p>
<p id="par_id8589434" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=DEGREES(ACOT(1))</span> returns 45. The tangent of 45 degrees is 1.</p>
<div class="embedded">
<a name="trigon"></a>
<p id="par_id161521663319918" class="paragraph" dir="auto"></p>
</div>
<a name="Section58"></a>
<a name="bm_id3148426"></a>
<meta itemprop="keywords" content="ACOTH function">
<a name="bm_id3149777"></a>
<h2 id="hd_id3148426" dir="auto">ACOTH</h2>
<p id="par_id3147478" class="paragraph" dir="auto"><span class="avis">Returns the inverse hyperbolic cotangent of the given number.</span></p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3147172" class="code" dir="auto">ACOTH(Number)</p>
<p id="par_id3146155" class="paragraph" dir="auto">This function returns the inverse hyperbolic cotangent of <span class="emph">Number</span>, that is the number whose hyperbolic cotangent is Number.</p>
<p id="par_id5818659" class="paragraph" dir="auto">An error results if Number is between -1 and 1 inclusive.</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3150608" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=ACOTH(1.1)</span> returns inverse hyperbolic cotangent of 1.1, approximately 1.52226.</p>
<div class="embedded">
<a name="trigon"></a>
<p id="par_id161521663319918" class="paragraph" dir="auto"></p>
</div>
<a name="Section57"></a>
<a name="bm_id3145084"></a>
<meta itemprop="keywords" content="ASIN function">
<a name="bm_id3149280"></a>
<h2 id="hd_id3145084" dir="auto">ASIN</h2>
<p id="par_id3156296" class="paragraph" dir="auto"><span class="avis">Returns the inverse trigonometric sine of a number.</span></p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3156305" class="code" dir="auto">ASIN(Number)</p>
<p id="par_id3150964" class="paragraph" dir="auto">This function returns the inverse trigonometric sine of <span class="emph">Number</span>, that is the angle (in radians) whose sine is Number. The angle returned is between -PI/2 and +PI/2.</p>
<p id="par_id203863" class="paragraph" dir="auto">To return the angle in degrees, use the DEGREES function.</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3156100" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=ASIN(0)</span> returns 0.</p>
<p id="par_id6853846" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=ASIN(1)</span> returns 1.5707963267949 (PI/2 radians).</p>
<p id="par_id8772240" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=DEGREES(ASIN(0.5))</span> returns 30. The sine of 30 degrees is 0.5.</p>
<div class="embedded">
<a name="trigon"></a>
<p id="par_id161521663319918" class="paragraph" dir="auto"></p>
</div>
<a name="Section56"></a>
<a name="bm_id3151266"></a>
<meta itemprop="keywords" content="ASINH function">
<a name="bm_id3145206"></a>
<h2 id="hd_id3151266" dir="auto">ASINH</h2>
<p id="par_id3147077" class="paragraph" dir="auto"><span class="avis">Returns the inverse hyperbolic sine of a number.</span></p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3150882" class="code" dir="auto">ASINH(Number)</p>
<p id="par_id3147621" class="paragraph" dir="auto">This function returns the inverse hyperbolic sine of <span class="emph">Number</span>, that is the number whose hyperbolic sine is Number.</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3156120" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=ASINH(-90)</span> returns approximately -5.1929877.</p>
<p id="par_id4808496" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=ASINH(SINH(4))</span> returns 4.</p>
<div class="embedded">
<a name="trigon"></a>
<p id="par_id161521663319918" class="paragraph" dir="auto"></p>
</div>
<a name="Section55"></a>
<a name="bm_id3155996"></a>
<meta itemprop="keywords" content="ATAN function">
<a name="bm_id3154743"></a>
<h2 id="hd_id3155996" dir="auto">ATAN</h2>
<p id="par_id3149985" class="paragraph" dir="auto"><span class="avis">Returns the inverse trigonometric tangent of a number.</span></p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3150261" class="code" dir="auto">ATAN(Number)</p>
<p id="par_id3147267" class="paragraph" dir="auto">This function returns the inverse trigonometric tangent of <span class="emph">Number</span>, that is the angle (in radians) whose tangent is Number. The angle returned is between -PI/2 and PI/2.</p>
<p id="par_id6293527" class="paragraph" dir="auto">To return the angle in degrees, use the DEGREES function.</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3143229" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=ATAN(1)</span> returns 0.785398163397448 (PI/4 radians).</p>
<p id="par_id8746299" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=DEGREES(ATAN(1))</span> returns 45. The tangent of 45 degrees is 1.</p>
<div class="embedded">
<a name="trigon"></a>
<p id="par_id161521663319918" class="paragraph" dir="auto"></p>
</div>
<a name="Section54"></a>
<a name="bm_id3153983"></a>
<meta itemprop="keywords" content="ATAN2 function">
<a name="bm_id3159180"></a>
<h2 id="hd_id3153983" dir="auto">ATAN2</h2>
<p id="par_id3154297" class="paragraph" dir="auto"><span class="avis">Returns the angle (in radians) between the x-axis and a line from the origin to the point (NumberX|NumberY).</span></p>
<div class="embedded">
<a name="odff"></a>
<div class="note">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/note.svg" alt="note" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="hd_id1000010" dir="auto">This function is part of the Open Document Format for Office Applications (OpenDocument) standard Version 1.2. (ISO/IEC 26300:2-2015)</p></div>
</div>
<br>
</div>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3156013" class="code" dir="auto">ATAN2(NumberX; NumberY)</p>
<p id="par_id3001800" class="paragraph" dir="auto"><span class="emph">NumberX</span> is the value of the x coordinate.</p>
<p id="par_id3152798" class="paragraph" dir="auto"><span class="emph">NumberY</span> is the value of the y coordinate.</p>
<div class="tip">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/tip.svg" alt="tip" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="par_id5036168" dir="auto">Programming languages have usually the opposite order of arguments for their atan2() function.</p></div>
</div>
<br>
<p id="par_id5036165" class="paragraph" dir="auto">ATAN2 returns the angle (in radians) between the x-axis and a line from the origin to the point (NumberX|NumberY)</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3154692" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=ATAN2(-5;9)</span> returns 2.07789 radians.</p>
<p id="par_id5036166" class="paragraph" dir="auto">To get the angle in degrees apply the DEGREES function to the result.</p>
<p id="par_id1477095" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=DEGREES(ATAN2(12.3;12.3))</span> returns 45. The tangent of 45 degrees is 1.</p>
<div class="note">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/note.svg" alt="note" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="par_id5036167" dir="auto">LibreOffice results 0 for ATAN2(0;0).</p></div>
</div>
<br>
<p id="par_id5036169" class="paragraph" dir="auto">The function can be used in converting cartesian coordinates to polar coordinates.</p>
<p id="par_id5036170" class="paragraph" dir="auto">=DEGREES(ATAN2(-8;5)) returns φ = 147.9 degrees</p>
<p id="par_id5036171" class="paragraph" dir="auto">
<img src="media/helpimg/scalc/coordinates-to-polar-01.svg" class="genericimage" alt="Cartesian coordinates to polar coordinates example" style="width:240px;height:144px" itemprop="image" itemscope="true" itemtype="http://schema.org/ImageObject">
</p>
<div class="embedded">
<a name="trigon"></a>
<p id="par_id161521663319918" class="paragraph" dir="auto"></p>
</div>
<a name="Section53"></a>
<a name="bm_id3155398"></a>
<meta itemprop="keywords" content="ATANH function">
<a name="bm_id3154939"></a>
<h2 id="hd_id3155398" dir="auto">ATANH</h2>
<p id="par_id3148829" class="paragraph" dir="auto"><span class="avis">Returns the inverse hyperbolic tangent of a number.</span></p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3149912" class="code" dir="auto">ATANH(Number)</p>
<p id="par_id3150521" class="paragraph" dir="auto">This function returns the inverse hyperbolic tangent of <span class="emph">Number</span>, that is the number whose hyperbolic tangent is Number.</p>
<p id="par_id9357280" class="paragraph" dir="auto">Number must obey the condition -1 < number < 1.</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3145419" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=ATANH(0)</span> returns 0.</p>
<div class="embedded">
<a name="trigon"></a>
<p id="par_id161521663319918" class="paragraph" dir="auto"></p>
</div>
<a name="Section37"></a>
<a name="bm_id3155802"></a>
<meta itemprop="keywords" content="COMBIN function">
<meta itemprop="keywords" content="number of combinations">
<a name="bm_id3155077"></a>
<h2 id="hd_id3155802" dir="auto">COMBIN</h2>
<p id="par_id3156172" class="paragraph" dir="auto"><span class="avis">Returns the number of combinations for elements without repetition.</span></p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3150223" class="code" dir="auto">COMBIN(Count1; Count2)</p>
<p id="par_id3150313" class="paragraph" dir="auto"><span class="emph">Count1</span> is the number of items in the set.</p>
<p id="par_id3153830" class="paragraph" dir="auto"><span class="emph">Count2</span> is the number of items to choose from the set.</p>
<p id="par_id6807458" class="paragraph" dir="auto">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.</p>
<p id="par_id7414471" class="paragraph" dir="auto">COMBIN implements the formula: Count1!/(Count2!*(Count1-Count2)!)</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3153517" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=COMBIN(3;2)</span> returns 3.</p>
<a name="Section36"></a>
<a name="bm_id3150284"></a>
<meta itemprop="keywords" content="COMBINA function">
<meta itemprop="keywords" content="number of combinations with repetitions">
<a name="bm_id3150295"></a>
<h2 id="hd_id3150284" dir="auto">COMBINA</h2>
<p id="par_id3157894" class="paragraph" dir="auto"><span class="avis">Returns the number of combinations of a subset of items including repetitions.</span></p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3145765" class="code" dir="auto">COMBINA(Count1; Count2)</p>
<p id="par_id3153372" class="paragraph" dir="auto"><span class="emph">Count1</span> is the number of items in the set.</p>
<p id="par_id3155544" class="paragraph" dir="auto"><span class="emph">Count2</span> is the number of items to choose from the set.</p>
<p id="par_id1997131" class="paragraph" dir="auto">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 AA, AB, AC, BB, BC and CC.</p>
<p id="par_id2052064" class="paragraph" dir="auto">COMBINA implements the formula: (Count1+Count2-1)! / (Count2!(Count1-1)!)</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3152904" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=COMBINA(3;2)</span> returns 6.</p>
<a name="convert"></a>
<a name="bm_id0908200902090676"></a>
<meta itemprop="keywords" content="CONVERT_OOO function">
<a name="bm_id0908200902093111"></a>
<h2 id="hd_id0908200902074836" dir="auto">CONVERT_OOO</h2>
<p id="par_id0908200902131122" class="paragraph" dir="auto"><span class="avis">Converts to euros a currency value expressed in one of the legacy currencies of 19 member states of the Eurozone, and vice versa.</span> The conversion uses the fixed exchange rates at which the legacy currencies entered the euro.</p>
<div class="tip">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/tip.svg" alt="tip" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="par_id581631900947319" dir="auto">We recommend using the more flexible EUROCONVERT function for converting between these currencies. CONVERT_OOO is not a standardized function and is not portable.</p></div>
</div>
<br>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id0908200902131191" class="code" dir="auto">CONVERT_OOO(Value; "Text1"; "Text2")</p>
<p id="par_id901631901062056" class="paragraph" dir="auto"><span class="emph">Value</span> is the amount of the currency to be converted.</p>
<p id="par_id461631901137229" class="paragraph" dir="auto"><span class="emph">Text1</span> is a three-character string that specifies the currency to be converted from.</p>
<p id="par_id351631901218862" class="paragraph" dir="auto"><span class="emph">Text2</span> is a three-character string that specifies the currency to be converted to.</p>
<p id="par_id1001631901312606" class="paragraph" dir="auto"><span class="emph">Text1</span> and <span class="emph">Text2</span> must each take one of the following values: "ATS", "BEF", "CYP", "DEM", "EEK", "ESP", "EUR", "FIM", "FRF", "GRD", "IEP", "ITL", "LTL", "LUF", "LVL", "MTL", "NLG", "PTE", "SIT", and "SKK".</p>
<p id="par_id111631901383901" class="paragraph" dir="auto">One, and only one, of <span class="emph">Text1</span> or <span class="emph">Text2</span> must be equal to "EUR".</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id090820090213112" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=CONVERT_OOO(100;"ATS";"EUR")</span> returns the euro value of 100 Austrian schillings.</p>
<p id="par_id0908200902475431" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=CONVERT_OOO(100;"EUR";"DEM")</span> converts 100 euros into German marks.</p>
<div class="tip">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/tip.svg" alt="tip" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="par_id251631901851101" dir="auto">Refer to the <a target="_blank" href="https://wiki.documentfoundation.org/Documentation/Calc_Functions/CONVERT_OOO">CONVERT_OOO</a> wiki page for more details about this function.</p></div>
</div>
<br>
<a name="Section52"></a>
<a name="bm_id3153062"></a>
<meta itemprop="keywords" content="COS function">
<a name="bm_id3158408"></a>
<h2 id="hd_id3153062" dir="auto">COS</h2>
<p id="par_id3148803" class="paragraph" dir="auto"><span class="avis">Returns the cosine of the given angle (in radians).</span></p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3154213" class="code" dir="auto">COS(Number)</p>
<p id="par_id3154285" class="paragraph" dir="auto">Returns the (trigonometric) cosine of <span class="emph">Number</span>, the angle in radians.</p>
<p id="par_id831019" class="paragraph" dir="auto">To return the cosine of an angle in degrees, use the RADIANS function.</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3147241" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=COS(PI()*2)</span> returns 1, the cosine of 2*PI radians.</p>
<p id="par_id3147516" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=COS(RADIANS(60))</span> returns 0.5, the cosine of 60 degrees.</p>
<div class="embedded">
<a name="trigon"></a>
<p id="par_id161521663319918" class="paragraph" dir="auto"></p>
</div>
<a name="Section51"></a>
<a name="bm_id3154277"></a>
<meta itemprop="keywords" content="COSH function">
<a name="bm_id3149158"></a>
<h2 id="hd_id3154277" dir="auto">COSH</h2>
<p id="par_id3146946" class="paragraph" dir="auto"><span class="avis">Returns the hyperbolic cosine of a number.</span></p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3166440" class="code" dir="auto">COSH(Number)</p>
<p id="par_id3150710" class="paragraph" dir="auto">Returns the hyperbolic cosine of <span class="emph">Number</span>.</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3154099" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=COSH(0)</span> returns 1, the hyperbolic cosine of 0.</p>
<div class="embedded">
<a name="trigon"></a>
<p id="par_id161521663319918" class="paragraph" dir="auto"></p>
</div>
<a name="Section50"></a>
<a name="bm_id3152888"></a>
<meta itemprop="keywords" content="COT function">
<a name="bm_id3153392"></a>
<h2 id="hd_id3152888" dir="auto">COT</h2>
<p id="par_id3153679" class="paragraph" dir="auto"><span class="avis">Returns the cotangent of the given angle (in radians).</span></p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3154856" class="code" dir="auto">COT(Number)</p>
<p id="par_id3149969" class="paragraph" dir="auto">Returns the (trigonometric) cotangent of <span class="emph">Number</span>, the angle in radians.</p>
<p id="par_id3444624" class="paragraph" dir="auto">To return the cotangent of an angle in degrees, use the RADIANS function.</p>
<p id="par_id6814477" class="paragraph" dir="auto">The cotangent of an angle is equivalent to 1 divided by the tangent of that angle.</p>
<h3 id="hd_id3149800" dir="auto">Examples:</h3>
<p id="par_id3148616" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=COT(PI()/4)</span> returns 1, the cotangent of PI/4 radians.</p>
<p id="par_id3148986" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=COT(RADIANS(45))</span> returns 1, the cotangent of 45 degrees.</p>
<div class="embedded">
<a name="trigon"></a>
<p id="par_id161521663319918" class="paragraph" dir="auto"></p>
</div>
<a name="Section49"></a>
<a name="bm_id3154337"></a>
<meta itemprop="keywords" content="COTH function">
<a name="bm_id3148650"></a>
<h2 id="hd_id3154337" dir="auto">COTH</h2>
<p id="par_id3149419" class="paragraph" dir="auto"><span class="avis">Returns the hyperbolic cotangent of a given number (angle).</span></p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3143280" class="code" dir="auto">COTH(Number)</p>
<p id="par_id3154799" class="paragraph" dir="auto">Returns the hyperbolic cotangent of <span class="emph">Number</span>.</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3144754" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=COTH(1)</span> returns the hyperbolic cotangent of 1, approximately 1.3130.</p>
<div class="embedded">
<a name="trigon"></a>
<p id="par_id161521663319918" class="paragraph" dir="auto"></p>
</div>
<a name="Section64"></a>
<a name="bm_id6110552"></a>
<meta itemprop="keywords" content="CSC function">
<a name="bm_id5645316"></a>
<h2 id="hd_id9523234" dir="auto">CSC</h2>
<p id="par_id4896433" class="paragraph" dir="auto"><span class="avis">Returns the cosecant of the given angle (in radians). The cosecant of an angle is equivalent to 1 divided by the sine of that angle</span></p>
<div class="embedded">
<a name="3.5"></a>
<div class="tip">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/tip.svg" alt="tip" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="par_id651551401041635" dir="auto">This function is available since LibreOffice 3.5.</p></div>
</div>
<br>
</div>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id4571344" class="code" dir="auto">CSC(Number)</p>
<p id="par_id9859164" class="paragraph" dir="auto">Returns the (trigonometric) cosecant of <span class="emph">Number</span>, the angle in radians.</p>
<p id="par_id3428494" class="paragraph" dir="auto">To return the cosecant of an angle in degrees, use the RADIANS function.</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3736803" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=CSC(PI()/4)</span> returns approximately 1.4142135624, the inverse of the sine of PI/4 radians.</p>
<p id="par_id6016818" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=CSC(RADIANS(30))</span> returns 2, the cosecant of 30 degrees.</p>
<div class="embedded">
<a name="trigon"></a>
<p id="par_id161521663319918" class="paragraph" dir="auto"></p>
</div>
<a name="Section66"></a>
<a name="bm_id9288877"></a>
<meta itemprop="keywords" content="CSCH function">
<a name="bm_id9532490"></a>
<h2 id="hd_id4325650" dir="auto">CSCH</h2>
<p id="par_id579916" class="paragraph" dir="auto"><span class="avis">Returns the hyperbolic cosecant of a number.</span></p>
<div class="embedded">
<a name="3.5"></a>
<div class="tip">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/tip.svg" alt="tip" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="par_id651551401041635" dir="auto">This function is available since LibreOffice 3.5.</p></div>
</div>
<br>
</div>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3108851" class="code" dir="auto">CSCH(Number)</p>
<p id="par_id1394188" class="paragraph" dir="auto">Returns the hyperbolic cosecant of <span class="emph">Number</span>.</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id5426085" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=CSCH(1)</span> returns approximately 0.8509181282, the hyperbolic cosecant of 1.</p>
<div class="embedded">
<a name="trigon"></a>
<p id="par_id161521663319918" class="paragraph" dir="auto"></p>
</div>
<a name="Section48"></a>
<a name="bm_id3145314"></a>
<meta itemprop="keywords" content="DEGREES function">
<meta itemprop="keywords" content="converting,radians, into degrees">
<a name="bm_id3153946"></a>
<h2 id="hd_id3145314" dir="auto">DEGREES</h2>
<p id="par_id3149939" class="paragraph" dir="auto"><span class="avis">Converts radians into degrees.</span></p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3145600" class="code" dir="auto">DEGREES(Number)</p>
<p id="par_id3149484" class="paragraph" dir="auto"><span class="emph">Number</span> is the angle in radians to be converted to degrees.</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3459578" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=DEGREES(PI())</span> returns 180 degrees.</p>
<a name="Section11"></a>
<a name="bm_id3143672"></a>
<meta itemprop="keywords" content="Euro, converting">
<meta itemprop="keywords" content="EUROCONVERT function">
<a name="bm_id3143684"></a>
<a name="bm_id0119200904282677"></a>
<h2 id="hd_id3143672" dir="auto">EUROCONVERT</h2>
<p id="par_id3143708" class="paragraph" dir="auto"><span class="avis">Converts between old European national currency and to and from Euros.</span></p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3143748" class="code" dir="auto">EUROCONVERT(Value; "From_currency"; "To_currency" [; full_precision [; triangulation_precision]])</p>
<p id="par_id3143763" class="paragraph" dir="auto"><span class="emph">Value</span> is the amount of the currency to be converted.</p>
<p id="par_id3143782" class="paragraph" dir="auto"><span class="emph">From_currency</span> and <span class="emph">To_currency</span> 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.</p>
<p id="par_id0119200904301810" class="paragraph" dir="auto"><span class="emph">Full_precision</span> 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.</p>
<p id="par_id0119200904301815" class="paragraph" dir="auto"><span class="emph">Triangulation_precision</span> 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.</p>
<h3 id="par_id3143819" dir="auto"><span class="emph">Examples</span></h3>
<p id="par_id3143837" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=EUROCONVERT(100;"ATS";"EUR")</span> converts 100 Austrian Schillings into Euros.</p>
<p id="par_id3143853" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=EUROCONVERT(100;"EUR";"DEM")</span> converts 100 Euros into German Marks.</p>
<a name="Section44"></a>
<a name="bm_id3150938"></a>
<meta itemprop="keywords" content="EVEN function">
<meta itemprop="keywords" content="numbers,rounding up/down to even integers">
<meta itemprop="keywords" content="rounding,up/down to even integers">
<a name="bm_id3150949"></a>
<h2 id="hd_id3150938" dir="auto">EVEN</h2>
<p id="par_id3149988" class="paragraph" dir="auto"><span class="avis">Rounds a positive number up to the next even integer and a negative number down to the next even integer.</span></p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3150830" class="code" dir="auto">EVEN(Number)</p>
<p id="par_id3153350" class="paragraph" dir="auto">Returns <span class="emph">Number</span> rounded to the next even integer up, away from zero.</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3154361" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=EVEN(2.3)</span> returns 4.</p>
<p id="par_id8477736" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=EVEN(2)</span> returns 2.</p>
<p id="par_id159611" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=EVEN(0)</span> returns 0.</p>
<p id="par_id6097598" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=EVEN(-0.5)</span> returns -2.</p>
<a name="Section47"></a>
<a name="bm_id3148698"></a>
<meta itemprop="keywords" content="EXP function">
<a name="bm_id3154625"></a>
<h2 id="hd_id3148698" dir="auto">EXP</h2>
<p id="par_id3150592" class="paragraph" dir="auto"><span class="avis">Returns <span class="literal">e</span> raised to the power of a number.</span> The constant <span class="literal">e</span> has a value of approximately 2.71828182845904.</p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3146786" class="code" dir="auto">EXP(Number)</p>
<p id="par_id3155608" class="paragraph" dir="auto"><span class="emph">Number</span> is the power to which e is to be raised.</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3156340" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=EXP(1)</span> returns 2.71828182845904, the mathematical constant <span class="literal">e</span> to Calc's accuracy.</p>
<a name="Section46"></a>
<a name="bm_id3145781"></a>
<meta itemprop="keywords" content="FACT function">
<meta itemprop="keywords" content="factorials,numbers">
<a name="bm_id3153886"></a>
<h2 id="hd_id3145781" dir="auto">FACT</h2>
<p id="par_id3151109" class="paragraph" dir="auto"><span class="avis">Returns the factorial of a number.</span></p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3154661" class="code" dir="auto">FACT(Number)</p>
<p id="par_id3152952" class="paragraph" dir="auto">Returns Number!, the factorial of <span class="emph">Number</span>, calculated as 1*2*3*4* ... * Number.</p>
<p id="par_id3834650" class="paragraph" dir="auto">=FACT(0) returns 1 by definition.</p>
<p id="par_id8429517" class="paragraph" dir="auto">The factorial of a negative number returns the "invalid argument" error.</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3154476" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=FACT(3)</span> returns 6.</p>
<p id="par_id3147525" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=FACT(0)</span> returns 1.</p>
<a name="Section43"></a>
<a name="bm_id3147356"></a>
<meta itemprop="keywords" content="GCD function">
<meta itemprop="keywords" content="greatest common divisor">
<a name="bm_id3149737"></a>
<h2 id="hd_id3147356" dir="auto">GCD</h2>
<p id="par_id3152465" class="paragraph" dir="auto"><span class="avis">Returns the greatest common divisor of two or more integers.</span></p>
<p id="par_id2769249" class="paragraph" dir="auto">The greatest common divisor is the positive largest integer which will divide, without remainder, each of the given integers.</p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3154524" class="code" dir="auto">GCD(Integer 1 [; Integer 2 [; … [; Integer 255]]])</p>
<div class="embedded">
<a name="integer255"></a>
<p id="par_id1001584395844941" class="paragraph" dir="auto"><span class="emph">Integer 1, Integer 2, … , Integer 255</span> are integers, references to cells or to cell ranges of integers.</p>
</div>
<div class="embedded">
<a name="datenumbersequencenote"></a>
<div class="note">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/note.svg" alt="note" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="par_id301616845402409" dir="auto">This function ignores any text or empty cell within a data range. If you suspect wrong results from this function, look for text in the data ranges. To highlight text contents in a data range, use the <a target="_top" href="en-US/text/scalc/01/03080000.html">value highlighting</a> feature.</p></div>
</div>
<br>
</div>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3151285" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=GCD(16;32;24) </span>gives the result 8, because 8 is the largest number that can divide 16, 24 and 32 without a remainder.</p>
<p id="par_id1604663" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=GCD(B1:B3)</span> where cells B1, B2, B3 contain <span class="input">9</span>, <span class="input">12</span>, <span class="input">9</span> gives 3.</p>
<a name="Section42"></a>
<a name="bm_id3151221"></a>
<meta itemprop="keywords" content="GCD_EXCEL2003 function">
<a name="bm_id3147578"></a>
<h2 id="hd_id3151221" dir="auto">GCD_EXCEL2003</h2>
<p id="par_id3153257" class="paragraph" dir="auto"><span class="avis">The result is the greatest common divisor of a list of numbers.</span></p>
<div class="embedded">
<a name="ADD_note"></a>
<div class="note">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/note.svg" alt="note" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="par_idN10600" dir="auto">The functions whose names end with _ADD or _EXCEL2003 return the same results as the corresponding Microsoft Excel 2003 functions without the suffix. Use the functions without suffix to get results based on international standards.</p></div>
</div>
<br>
</div>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3156205" class="code" dir="auto">GCD_EXCEL2003(Number 1 [; Number 2 [; … [; Number 255]]])</p>
<div class="embedded">
<a name="number255"></a>
<p id="par_id931584395947010" class="paragraph" dir="auto"><span class="emph">Number 1, Number 2, … , Number 255</span> are numbers, references to cells or to cell ranges of numbers.</p>
</div>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3159192" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=GCD_EXCEL2003(5;15;25)</span> returns 5.</p>
<a name="Section45"></a>
<a name="bm_id3159084"></a>
<meta itemprop="keywords" content="INT function">
<meta itemprop="keywords" content="numbers,rounding down to next integer">
<meta itemprop="keywords" content="rounding,down to next integer">
<a name="bm_id3151311"></a>
<h2 id="hd_id3159084" dir="auto">INT</h2>
<p id="par_id3158441" class="paragraph" dir="auto"><span class="avis">Rounds a number down to the nearest integer.</span></p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3156146" class="code" dir="auto">INT(Number)</p>
<p id="par_id3154117" class="paragraph" dir="auto">Returns <span class="emph">Number</span> rounded down to the nearest integer.</p>
<p id="par_id153508" class="paragraph" dir="auto">Negative numbers round down to the integer below.</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3156267" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=INT(5.7)</span> returns 5.</p>
<p id="par_id3147323" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=INT(-1.3)</span> returns -2.</p>
<a name="Section39"></a>
<a name="bm_id3145213"></a>
<meta itemprop="keywords" content="LCM function">
<meta itemprop="keywords" content="least common multiples">
<meta itemprop="keywords" content="lowest common multiples">
<a name="bm_id3145225"></a>
<h2 id="hd_id3145213" dir="auto">LCM</h2>
<p id="par_id3146814" class="paragraph" dir="auto"><span class="avis">Returns the least common multiple of one or more integers.</span></p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3147279" class="code" dir="auto">LCM(Integer 1 [; Integer 2 [; … [; Integer 255]]])</p>
<div class="embedded">
<a name="integer255"></a>
<p id="par_id1001584395844941" class="paragraph" dir="auto"><span class="emph">Integer 1, Integer 2, … , Integer 255</span> are integers, references to cells or to cell ranges of integers.</p>
</div>
<div class="embedded">
<a name="datenumbersequencenote"></a>
<div class="note">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/note.svg" alt="note" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="par_id301616845402409" dir="auto">This function ignores any text or empty cell within a data range. If you suspect wrong results from this function, look for text in the data ranges. To highlight text contents in a data range, use the <a target="_top" href="en-US/text/scalc/01/03080000.html">value highlighting</a> feature.</p></div>
</div>
<br>
</div>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3154914" class="paragraph" dir="auto">If you enter the numbers 512; 1024 and 2000 as Integer 1;2 and 3, then 128000 will be returned.</p>
<a name="Section38"></a>
<a name="bm_id3154230"></a>
<meta itemprop="keywords" content="LCM_EXCEL2003 function">
<a name="bm_id3147222"></a>
<h2 id="hd_id3154230" dir="auto">LCM_EXCEL2003</h2>
<p id="par_id3149036" class="paragraph" dir="auto"><span class="avis">The result is the lowest common multiple of a list of numbers.</span></p>
<div class="embedded">
<a name="ADD_note"></a>
<div class="note">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/note.svg" alt="note" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="par_idN10600" dir="auto">The functions whose names end with _ADD or _EXCEL2003 return the same results as the corresponding Microsoft Excel 2003 functions without the suffix. Use the functions without suffix to get results based on international standards.</p></div>
</div>
<br>
</div>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3154395" class="code" dir="auto">LCM_EXCEL2003(Number 1 [; Number 2 [; … [; Number 255]]])</p>
<div class="embedded">
<a name="number255"></a>
<p id="par_id931584395947010" class="paragraph" dir="auto"><span class="emph">Number 1, Number 2, … , Number 255</span> are numbers, references to cells or to cell ranges of numbers.</p>
</div>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3145135" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=LCM_EXCEL2003(5;15;25)</span> returns 75.</p>
<a name="Section34"></a>
<a name="bm_id3153601"></a>
<meta itemprop="keywords" content="LN function">
<meta itemprop="keywords" content="natural logarithm">
<a name="bm_id3153613"></a>
<h2 id="hd_id3153601" dir="auto">LN</h2>
<p id="par_id3154974" class="paragraph" dir="auto"><span class="avis">Returns the natural logarithm based on the constant e of a number.</span> The constant e has a value of approximately 2.71828182845904.</p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3155284" class="code" dir="auto">LN(Number)</p>
<p id="par_id3155297" class="paragraph" dir="auto"><span class="emph">Number</span> is the value whose natural logarithm is to be calculated.</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3153866" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=LN(3)</span> returns the natural logarithm of 3 (approximately 1.0986).</p>
<p id="par_id5747245" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=LN(EXP(321))</span> returns 321.</p>
<a name="Section33"></a>
<a name="bm_id3109813"></a>
<meta itemprop="keywords" content="LOG function">
<meta itemprop="keywords" content="logarithms">
<a name="bm_id3109824"></a>
<h2 id="hd_id3109813" dir="auto">LOG</h2>
<p id="par_id3109841" class="paragraph" dir="auto"><span class="avis">Returns the logarithm of a number to the specified base.</span></p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3144732" class="code" dir="auto">LOG(Number [; Base])</p>
<p id="par_id3144746" class="paragraph" dir="auto"><span class="emph">Number</span> is the value whose logarithm is to be calculated.</p>
<p id="par_id3152840" class="paragraph" dir="auto"><span class="emph">Base</span> (optional) is the base for the logarithm calculation. If omitted, Base 10 is assumed.</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3154429" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=LOG(10;3)</span> returns the logarithm to base 3 of 10 (approximately 2.0959).</p>
<p id="par_id5577562" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=LOG(7^4;7)</span> returns 4.</p>
<a name="Section32"></a>
<a name="bm_id3154187"></a>
<meta itemprop="keywords" content="LOG10 function">
<meta itemprop="keywords" content="base-10 logarithm">
<a name="bm_id3155460"></a>
<h2 id="hd_id3154187" dir="auto">LOG10</h2>
<p id="par_id3155476" class="paragraph" dir="auto"><span class="avis">Returns the base-10 logarithm of a number.</span></p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3159294" class="code" dir="auto">LOG10(Number)</p>
<p id="par_id3159308" class="paragraph" dir="auto">Returns the logarithm to base 10 of <span class="emph">Number</span>.</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3157916" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=LOG10(5)</span> returns the base-10 logarithm of 5 (approximately 0.69897).</p>
<a name="Section24"></a>
<a name="bm_id3158247"></a>
<meta itemprop="keywords" content="MOD function">
<meta itemprop="keywords" content="remainders of divisions">
<a name="bm_id3158259"></a>
<h2 id="hd_id3158247" dir="auto">MOD</h2>
<p id="par_id3158276" class="paragraph" dir="auto"><span class="avis">Returns the remainder when one integer is divided by another.</span></p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3158308" class="code" dir="auto">MOD(Dividend; Divisor)</p>
<p id="par_id3158321" class="paragraph" dir="auto">For integer arguments this function returns Dividend modulo Divisor, that is the remainder when <span class="emph">Dividend</span> is divided by <span class="emph">Divisor</span>.</p>
<p id="par_id3158341" class="paragraph" dir="auto">This function is implemented as <span class="literal">Dividend - Divisor * INT(Dividend/Divisor)</span> , and this formula gives the result if the arguments are not integer.</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3158374" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=MOD(22;3)</span> returns 1, the remainder when 22 is divided by 3.</p>
<p id="par_id1278420" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=MOD(11.25;2.5)</span> returns 1.25.</p>
<a name="Section7"></a>
<a name="bm_id3164252"></a>
<meta itemprop="keywords" content="MROUND function">
<meta itemprop="keywords" content="nearest multiple">
<a name="bm_id3164264"></a>
<h2 id="hd_id3164252" dir="auto">MROUND</h2>
<p id="par_id3164288" class="paragraph" dir="auto"><span class="avis">Returns a number rounded to the nearest multiple of another number.</span></p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3164320" class="code" dir="auto">MROUND(Number; Multiple)</p>
<p id="par_id3486434" class="paragraph" dir="auto">Returns <span class="emph">Number</span> rounded to the nearest multiple of <span class="emph">Multiple</span>.</p>
<p id="par_id3068636" class="paragraph" dir="auto">An alternative implementation would be <span class="literal">Multiple * ROUND(Number/Multiple)</span>.</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3164347" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=MROUND(15.5;3)</span> returns 15, as 15.5 is closer to 15 (= 3*5) than to 18 (= 3*6).</p>
<p id="par_idN14DD6" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=MROUND(1.4;0.5)</span> returns 1.5 (= 0.5*3).</p>
<a name="Section29"></a>
<a name="bm_id3152418"></a>
<meta itemprop="keywords" content="MULTINOMIAL function">
<a name="bm_id3152429"></a>
<h2 id="hd_id3152418" dir="auto">MULTINOMIAL</h2>
<p id="par_id3152454" class="paragraph" dir="auto"><span class="avis">Returns the factorial of the sum of the arguments divided by the product of the factorials of the arguments.</span></p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3155660" class="code" dir="auto">MULTINOMIAL(Number 1 [; Number 2 [; … [; Number 255]]])</p>
<div class="embedded">
<a name="number255"></a>
<p id="par_id931584395947010" class="paragraph" dir="auto"><span class="emph">Number 1, Number 2, … , Number 255</span> are numbers, references to cells or to cell ranges of numbers.</p>
</div>
<div class="embedded">
<a name="datenumbersequencenote"></a>
<div class="note">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/note.svg" alt="note" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="par_id301616845402409" dir="auto">This function ignores any text or empty cell within a data range. If you suspect wrong results from this function, look for text in the data ranges. To highlight text contents in a data range, use the <a target="_top" href="en-US/text/scalc/01/03080000.html">value highlighting</a> feature.</p></div>
</div>
<br>
</div>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3155701" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=MULTINOMIAL(F11:H11)</span> returns 1260, if F11 to H11 contain the values <span class="input">2</span>, <span class="input">3</span> and <span class="input">4</span>. This corresponds to the formula =(2+3+4)! / (2!*3!*4!)</p>
<a name="Section10"></a>
<a name="bm_id3157177"></a>
<meta itemprop="keywords" content="ODD function">
<meta itemprop="keywords" content="rounding,up/down to nearest odd integer">
<a name="bm_id3157188"></a>
<h2 id="hd_id3157177" dir="auto">ODD</h2>
<p id="par_id3157205" class="paragraph" dir="auto"><span class="avis">Rounds a positive number up to the nearest odd integer and a negative number down to the nearest odd integer.</span></p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3157237" class="code" dir="auto">ODD(Number)</p>
<p id="par_id3157250" class="paragraph" dir="auto">Returns <span class="emph">Number</span> rounded to the next odd integer up, away from zero.</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3157283" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=ODD(1.2)</span> returns 3.</p>
<p id="par_id8746910" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=ODD(1)</span> returns 1.</p>
<p id="par_id9636524" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=ODD(0)</span> returns 1.</p>
<p id="par_id5675527" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=ODD(-3.1)</span> returns -5.</p>
<a name="Section30"></a>
<a name="bm_id3157762"></a>
<meta itemprop="keywords" content="PI function">
<a name="bm_id3157774"></a>
<h2 id="hd_id3157762" dir="auto">PI</h2>
<p id="par_id3157790" class="paragraph" dir="auto"><span class="avis">Returns 3.14159265358979, the value of the mathematical constant PI to 14 decimal places.</span></p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3157822" class="code" dir="auto">PI()</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3152370" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=PI()</span> returns 3.14159265358979.</p>
<a name="Section28"></a>
<a name="bm_id3155717"></a>
<meta itemprop="keywords" content="POWER function">
<a name="bm_id3155728"></a>
<h2 id="hd_id3155717" dir="auto">POWER</h2>
<p id="par_id3159495" class="paragraph" dir="auto"><span class="avis">Returns a number raised to another number.</span></p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3159526" class="code" dir="auto">POWER(Base; Exponent)</p>
<p id="par_id3159540" class="paragraph" dir="auto">Returns <span class="emph">Base</span> raised to the power of <span class="emph">Exponent</span>.</p>
<p id="par_id5081637" class="paragraph" dir="auto">The same result may be achieved by using the exponentiation operator ^:</p>
<p id="par_id9759514" class="code" dir="auto"><span class="literal">Base^Exponent</span></p>
<div class="note">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/note.svg" alt="note" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="par_id241599040594931" dir="auto"><span class="literal">=POWER(0,0)</span> returns 1.</p></div>
</div>
<br>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3159594" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=POWER(4;3)</span> returns 64, which is 4 to the power of 3.</p>
<p id="par_id1614429" class="paragraph" dir="auto">=4^3 also returns 4 to the power of 3.</p>
<a name="Section26"></a>
<a name="bm_id3144386"></a>
<meta itemprop="keywords" content="PRODUCT function">
<meta itemprop="keywords" content="numbers,multiplying">
<meta itemprop="keywords" content="multiplying,numbers">
<a name="bm_id3144397"></a>
<h2 id="hd_id3144386" dir="auto">PRODUCT</h2>
<p id="par_id3144414" class="paragraph" dir="auto"><span class="avis">Multiplies all the numbers given as arguments and returns the product.</span></p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3144446" class="code" dir="auto">PRODUCT(Number 1 [; Number 2 [; … [; Number 255]]])</p>
<div class="embedded">
<a name="number255"></a>
<p id="par_id931584395947010" class="paragraph" dir="auto"><span class="emph">Number 1, Number 2, … , Number 255</span> are numbers, references to cells or to cell ranges of numbers.</p>
</div>
<div class="embedded">
<a name="datenumbersequencenote"></a>
<div class="note">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/note.svg" alt="note" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="par_id301616845402409" dir="auto">This function ignores any text or empty cell within a data range. If you suspect wrong results from this function, look for text in the data ranges. To highlight text contents in a data range, use the <a target="_top" href="en-US/text/scalc/01/03080000.html">value highlighting</a> feature.</p></div>
</div>
<br>
</div>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3144494" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=PRODUCT(2;3;4)</span> returns 24.</p>
<a name="Section23"></a>
<a name="bm_id3144592"></a>
<meta itemprop="keywords" content="QUOTIENT function">
<meta itemprop="keywords" content="divisions">
<a name="bm_id3144603"></a>
<h2 id="hd_id3144592" dir="auto">QUOTIENT</h2>
<p id="par_id3144627" class="paragraph" dir="auto"><span class="avis">Returns the integer part of a division operation.</span></p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3144659" class="code" dir="auto">QUOTIENT(Numerator; Denominator)</p>
<p id="par_id9038972" class="paragraph" dir="auto">Returns the integer part of <span class="emph">Numerator</span> divided by <span class="emph">Denominator</span>.</p>
<p id="par_id7985168" class="paragraph" dir="auto">QUOTIENT is equivalent to <span class="literal">INT(numerator/denominator)</span> for same-sign numerator and denominator, except that it may report errors with different error codes. More generally, it is equivalent to <span class="literal">INT(numerator/denominator/SIGN(numerator/denominator))*SIGN(numerator/denominator)</span>.</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3144687" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=QUOTIENT(11;3)</span> returns 3. The remainder of 2 is lost.</p>
<a name="Section22"></a>
<a name="bm_id3144702"></a>
<meta itemprop="keywords" content="RADIANS function">
<meta itemprop="keywords" content="converting,degrees, into radians">
<a name="bm_id3158008"></a>
<h2 id="hd_id3144702" dir="auto">RADIANS</h2>
<p id="par_id3158025" class="paragraph" dir="auto"><span class="avis">Converts degrees to radians.</span></p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3158055" class="code" dir="auto">RADIANS(Number)</p>
<p id="par_id3158069" class="paragraph" dir="auto"><span class="emph">Number</span> is the angle in degrees to be converted to radians.</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3939634" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=RADIANS(90)</span> returns 1.5707963267949, which is PI/2 to Calc's accuracy.</p>
<a name="Section3"></a>
<a name="bm_id3164800"></a>
<meta itemprop="keywords" content="RAND function">
<meta itemprop="keywords" content="random numbers,between 0 and 1">
<a name="bm_id3164812"></a>
<h2 id="hd_id3164800" dir="auto">RAND</h2>
<p id="par_id3164829" class="paragraph" dir="auto"><span class="avis">Returns a random number between 0 and 1.</span></p>
<div class="embedded">
<a name="func_volatile"></a>
<p id="par_id1001601332672155" class="paragraph" dir="auto">This function is always recalculated whenever a recalculation occurs.</p>
</div>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3164884" class="code" dir="auto">RAND()</p>
<p id="par_id5092318" class="paragraph" dir="auto">This function produces a new random number each time Calc recalculates. To force Calc to recalculate manually press F9.</p>
<p id="par_id9312417" class="paragraph" dir="auto">To generate random numbers which never recalculate, either:</p>
<ul itemprop="Unordered" itemscope="true" itemtype="http://schema.org/ItemList" dir="auto">
<li itemprop="itemListElement" itemscope="true" itemtype="http://schema.org/ItemListUnordered" dir="auto">
<p id="par_id451590242105253" class="listitem" dir="auto">Copy cells each containing =RAND(), and use <span class="menuitem">Edit - Paste Special</span> (with <span class="emph">Paste All</span> and <span class="emph">Formulas</span> not marked and <span class="emph">Numbers</span> marked).</p>
</li>
<li itemprop="itemListElement" itemscope="true" itemtype="http://schema.org/ItemListUnordered" dir="auto">
<p id="par_id801590242114296" class="listitem" dir="auto">Use the Fill Cell command with random numbers (<span class="menuitem">Sheet - Fill Cells - Fill Random Numbers</span>).</p>
</li>
<li itemprop="itemListElement" itemscope="true" itemtype="http://schema.org/ItemListUnordered" dir="auto">
<p id="par_id41590242118383" class="listitem" dir="auto">Use the RAND.NV() function for non-volatile random numbers.</p>
</li>
</ul>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id9569078" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=RAND()</span> returns a random number between 0 and 1.</p>
<a name="rand_nv"></a>
<a name="bm_id341590241488944"></a>
<meta itemprop="keywords" content="random numbers non-volatile,between 0 and 1">
<meta itemprop="keywords" content="RAND.NV function">
<a name="bm_id111590240232198"></a>
<h2 id="hd_id71590238179170" dir="auto">RAND.NV</h2>
<p id="par_id101590238875834" class="paragraph" dir="auto"><span class="avis">Returns a non-volatile random number between 0 and 1.</span></p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id391590238945182" class="code" dir="auto">RAND.NV()</p>
<p id="par_id271590239748534" class="paragraph" dir="auto">This function produces a non-volatile random number on input. A non-volatile function is not recalculated at new input events. The function does not recalculate when pressing <span class="keycode">F9</span>, except when the cursor is on the cell containing the function or using the <a target="_top" href="en-US/text/scalc/01/recalculate_hard.html"><span class="menuitem">Recalculate Hard</span></a> command (<span class="keycode">Shift</span>+<span id="swlnsystextscalc0104060106xml_2" class="switchinline"><span hidden="true" id="MACtextscalc0104060106xml_2" class="MAC"><span class="keycode">Command</span></span><span hidden="true" id="defaulttextscalc0104060106xml_2"><span class="keycode">Ctrl</span></span></span>+<span class="keycode">F9</span>). The function is recalculated when opening the file.</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id191590241215013" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=RAND.NV()</span> returns a non-volatile random number between 0 and 1.</p>
<div class="embedded">
<a name="sectiontechinfo"></a>
<h4 id="hd_id301640873452726" dir="auto">Technical information</h4>
</div>
<div class="embedded">
<a name="7.0"></a>
<div class="tip">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/tip.svg" alt="tip" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="par_id651551401041665" dir="auto">This function is available since LibreOffice 7.0.</p></div>
</div>
<br>
</div>
<div class="embedded">
<a name="notODFF"></a>
<p id="par_id251640873774457" class="paragraph" dir="auto">This function is not part of the <span class="emph">Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format</span> standard. The name space is</p>
</div>
<p id="par_id311640873986703" class="paragraph" dir="auto"><span class="literal">ORG.LIBREOFFICE.RAND.NV</span></p>
<a name="Section4"></a>
<a name="bm_id3164669"></a>
<meta itemprop="keywords" content="random numbers, between limits">
<meta itemprop="keywords" content="RANDBETWEEN function">
<a name="bm_id3164680"></a>
<h2 id="hd_id3164669" dir="auto">RANDBETWEEN</h2>
<p id="par_id3164711" class="paragraph" dir="auto"><span class="avis">Returns an integer random number in a specified range.</span></p>
<div class="embedded">
<a name="func_volatile"></a>
<p id="par_id1001601332672155" class="paragraph" dir="auto">This function is always recalculated whenever a recalculation occurs.</p>
</div>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3164758" class="code" dir="auto">RANDBETWEEN(Bottom; Top)</p>
<p id="par_id7112338" class="paragraph" dir="auto">Returns an integer random number between integers <span class="emph">Bottom</span> and <span class="emph">Top</span> (both inclusive).</p>
<p id="par_id2855616" class="paragraph" dir="auto">This function produces a new random number each time Calc recalculates. To force Calc to recalculate manually press F9.</p>
<p id="par_id2091433" class="paragraph" dir="auto">To generate random numbers which never recalculate, copy cells containing this function, and use <span class="menuitem">Edit - Paste Special</span> (with <span class="menuitem">Paste All</span> and <span class="menuitem">Formulas</span> not marked and <span class="menuitem">Numbers</span> marked).</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3164785" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=RANDBETWEEN(20;30)</span> returns an integer of between 20 and 30.</p>
<a name="randbetween_nv"></a>
<a name="bm_id461590241346526"></a>
<meta itemprop="keywords" content="random numbers non-volatile, between limits">
<meta itemprop="keywords" content="RANDBETWEEN.NV function">
<a name="bm_id601590240409484"></a>
<h2 id="hd_id171590240366277" dir="auto">RANDBETWEEN.NV</h2>
<p id="par_id391590240473510" class="paragraph" dir="auto"><span class="avis">Returns an non-volatile integer random number in a specified range.</span></p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id181590240522012" class="code" dir="auto">RANDBETWEEN.NV(Bottom; Top)</p>
<p id="par_id91590242400917" class="paragraph" dir="auto">Returns an non-volatile integer random number between integers <span class="emph">Bottom</span> and <span class="emph">Top</span> (both inclusive). A non-volatile function is not recalculated at new input events or pressing <span class="keycode">F9</span>. However, the function is recalculated when pressing <span class="keycode">F9</span> with the cursor on the cell containing the function, when opening the file, when using the <a target="_top" href="en-US/text/scalc/01/recalculate_hard.html"><span class="menuitem">Recalculate Hard</span></a> command (<span class="keycode">Shift</span>+<span id="swlnsystextscalc0104060106xml_1" class="switchinline"><span hidden="true" id="MACtextscalc0104060106xml_1" class="MAC"><span class="keycode">Command</span></span><span hidden="true" id="defaulttextscalc0104060106xml_1"><span class="keycode">Ctrl</span></span></span>+<span class="keycode">F9</span>) and when <span class="emph">Top</span> or <span class="emph">Bottom</span> are recalculated.</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id151590240999839" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=RANDBETWEEN.NV(20;30)</span> returns a non-volatile integer between 20 and 30.</p>
<p id="par_id1001590241005601" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=RANDBETWEEN.NV(A1;30)</span> returns a non-volatile integer between the value of cell A1 and 30. The function is recalculated when the contents of cell A1 change.</p>
<div class="embedded">
<a name="sectiontechinfo"></a>
<h4 id="hd_id301640873452726" dir="auto">Technical information</h4>
</div>
<div class="embedded">
<a name="7.0"></a>
<div class="tip">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/tip.svg" alt="tip" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="par_id651551401041665" dir="auto">This function is available since LibreOffice 7.0.</p></div>
</div>
<br>
</div>
<div class="embedded">
<a name="notODFF"></a>
<p id="par_id251640873774457" class="paragraph" dir="auto">This function is not part of the <span class="emph">Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format</span> standard. The name space is</p>
</div>
<p id="par_id311650873986703" class="paragraph" dir="auto"><span class="literal">ORG.LIBREOFFICE.RANDBETWEEN.NV</span></p>
<a name="Section21"></a>
<a name="bm_id3158121"></a>
<meta itemprop="keywords" content="ROUND function">
<a name="bm_id3158133"></a>
<h2 id="hd_id3158121" dir="auto">ROUND</h2>
<p id="par_id3158150" class="paragraph" dir="auto"><span class="avis">Rounds a number to a certain number of decimal places.</span></p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3158182" class="code" dir="auto">ROUND(Number [; Count])</p>
<p id="par_id3158196" class="paragraph" dir="auto">Returns <span class="emph">Number</span> rounded to <span class="emph">Count</span> 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.</p>
<p id="par_id599688" class="paragraph" dir="auto">This function rounds to the nearest number. See ROUNDDOWN and ROUNDUP for alternatives.</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3145876" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=ROUND(2.348;2)</span> returns 2.35</p>
<p id="par_id3145899" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=ROUND(-32.4834;3)</span> returns -32.483. Change the cell format to see all decimals.</p>
<p id="par_id1371501" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=ROUND(2.348;0)</span> returns 2.</p>
<p id="par_id4661702" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=ROUND(2.5)</span> returns 3.</p>
<p id="par_id7868892" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=ROUND(987.65;-2)</span> returns 1000.</p>
<a name="rounddown"></a>
<h2 id="hd_id561641930400105" dir="auto"><a target="_top" href="en-US/text/scalc/01/func_rounddown.html">ROUNDDOWN</a></h2>
<div class="embedded">
<a name="trunc_desc"></a>
<p id="par_id841641927277474" class="paragraph" dir="auto">Truncates a number while keeping a specified number of decimal digits.</p>
</div>
<a name="Section19"></a>
<a name="bm_id3163268"></a>
<meta itemprop="keywords" content="ROUNDUP function">
<a name="bm_id3163280"></a>
<h2 id="hd_id3163268" dir="auto">ROUNDUP</h2>
<p id="par_id3163297" class="paragraph" dir="auto"><span class="avis">Rounds a number up, away from zero, to a certain precision.</span></p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3163328" class="code" dir="auto">ROUNDUP(Number [; Count])</p>
<p id="par_id3163342" class="paragraph" dir="auto">Returns <span class="emph">Number</span> rounded up (away from zero) to <span class="emph">Count</span> 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.</p>
<p id="par_id9573961" class="paragraph" dir="auto">This function rounds away from zero. See ROUNDDOWN and ROUND for alternatives.</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3144786" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=ROUNDUP(1.1111;2)</span> returns 1.12.</p>
<p id="par_id7700430" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=ROUNDUP(1.2345;1)</span> returns 1.3.</p>
<p id="par_id1180455" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=ROUNDUP(45.67;0)</span> returns 46.</p>
<p id="par_id3405560" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=ROUNDUP(-45.67)</span> returns -46.</p>
<p id="par_id3409527" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=ROUNDUP(987.65;-2)</span> returns 1000.</p>
<a name="Section63"></a>
<a name="bm_id5256537"></a>
<meta itemprop="keywords" content="SEC function">
<a name="bm_id6577644"></a>
<h2 id="hd_id5187204" dir="auto">SEC</h2>
<p id="par_id9954962" class="paragraph" dir="auto"><span class="avis">Returns the secant of the given angle (in radians). The secant of an angle is equivalent to 1 divided by the cosine of that angle</span></p>
<div class="embedded">
<a name="3.5"></a>
<div class="tip">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/tip.svg" alt="tip" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="par_id651551401041635" dir="auto">This function is available since LibreOffice 3.5.</p></div>
</div>
<br>
</div>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id2055913" class="code" dir="auto">SEC(Number)</p>
<p id="par_id9568170" class="paragraph" dir="auto">Returns the (trigonometric) secant of <span class="emph">Number</span>, the angle in radians.</p>
<p id="par_id9047465" class="paragraph" dir="auto">To return the secant of an angle in degrees, use the RADIANS function.</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id6935513" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=SEC(PI()/4)</span> returns approximately 1.4142135624, the inverse of the cosine of PI/4 radians.</p>
<p id="par_id3954287" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=SEC(RADIANS(60))</span> returns 2, the secant of 60 degrees.</p>
<div class="embedded">
<a name="trigon"></a>
<p id="par_id161521663319918" class="paragraph" dir="auto"></p>
</div>
<a name="Section65"></a>
<a name="bm_id840005"></a>
<meta itemprop="keywords" content="SECH function">
<a name="bm_id6301347"></a>
<h2 id="hd_id8661934" dir="auto">SECH</h2>
<p id="par_id408174" class="paragraph" dir="auto"><span class="avis">Returns the hyperbolic secant of a number.</span></p>
<div class="embedded">
<a name="3.5"></a>
<div class="tip">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/tip.svg" alt="tip" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="par_id651551401041635" dir="auto">This function is available since LibreOffice 3.5.</p></div>
</div>
<br>
</div>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id4985391" class="code" dir="auto">SECH(Number)</p>
<p id="par_id1952124" class="paragraph" dir="auto">Returns the hyperbolic secant of <span class="emph">Number</span>.</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id1187764" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=SECH(0)</span> returns 1, the hyperbolic secant of 0.</p>
<div class="embedded">
<a name="trigon"></a>
<p id="par_id161521663319918" class="paragraph" dir="auto"></p>
</div>
<a name="Section27"></a>
<a name="bm_id3152651"></a>
<meta itemprop="keywords" content="SERIESSUM function">
<a name="bm_id3152662"></a>
<h2 id="hd_id3152651" dir="auto">SERIESSUM</h2>
<p id="par_id3152688" class="paragraph" dir="auto"><span class="avis">Sums the first terms of a power series.</span></p>
<p id="par_id3152708" class="paragraph" dir="auto">SERIESSUM(x;n;m;c) = c<sub>1</sub>x<sup>n</sup> + c<sub>2</sub>x<sup>n+m</sup> + c<sub>3</sub>x<sup>n+2m</sup> + ... + c<sub>i</sub>x<sup>n + (i-1)m</sup>.</p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_idN11BD9" class="code" dir="auto">SERIESSUM(X; N; M; Coefficients)</p>
<p id="par_id3152737" class="paragraph" dir="auto"><span class="emph">X</span> is the input value for the power series.</p>
<p id="par_id3144344" class="paragraph" dir="auto"><span class="emph">N</span> is the initial power</p>
<p id="par_id3144357" class="paragraph" dir="auto"><span class="emph">M</span> is the increment to increase N</p>
<p id="par_id3144370" class="paragraph" dir="auto"><span class="emph">Coefficients</span> is a series of coefficients. For each coefficient the series sum is extended by one section.</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id431635251540138" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=SERIESSUM(A1; 0; 1; {1; 2; 3})</span> calculates the value of 1+2x+3x<sup>2</sup>, where x is the value in cell A1. If A1 contains 1, the formula returns 6; if A1 contains 2, the formula returns 17; if A1 contains 3, the formula returns 34; and so on.</p>
<div class="tip">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/tip.svg" alt="tip" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="par_id881635251427220" dir="auto">Refer to the <a target="_blank" href="https://wiki.documentfoundation.org/Documentation/Calc_Functions/SERIESSUM">SERIESSUM</a> wiki page for more details about this function.</p></div>
</div>
<br>
<a name="Section8"></a>
<a name="bm_id3164086"></a>
<meta itemprop="keywords" content="SIGN function">
<meta itemprop="keywords" content="algebraic signs">
<a name="bm_id3164098"></a>
<h2 id="hd_id3164086" dir="auto">SIGN</h2>
<p id="par_id3164115" class="paragraph" dir="auto"><span class="avis">Returns the sign of a number. Returns 1 if the number is positive, -1 if negative and 0 if zero.</span></p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3164150" class="code" dir="auto">SIGN(Number)</p>
<p id="par_id3164164" class="paragraph" dir="auto"><span class="emph">Number</span> is the number whose sign is to be determined.</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3164197" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=SIGN(3.4)</span> returns 1.</p>
<p id="par_id3164212" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=SIGN(-4.5)</span> returns -1.</p>
<a name="Section18"></a>
<a name="bm_id3144877"></a>
<meta itemprop="keywords" content="SIN function">
<a name="bm_id3144889"></a>
<h2 id="hd_id3144877" dir="auto">SIN</h2>
<p id="par_id3144906" class="paragraph" dir="auto"><span class="avis">Returns the sine of the given angle (in radians).</span></p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3144937" class="code" dir="auto">SIN(Number)</p>
<p id="par_id3144950" class="paragraph" dir="auto">Returns the (trigonometric) sine of <span class="emph">Number</span>, the angle in radians.</p>
<p id="par_id8079470" class="paragraph" dir="auto">To return the sine of an angle in degrees, use the RADIANS function.</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3144983" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=SIN(PI()/2)</span> returns 1, the sine of PI/2 radians.</p>
<p id="par_id3916440" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=SIN(RADIANS(30))</span> returns 0.5, the sine of 30 degrees.</p>
<div class="embedded">
<a name="trigon"></a>
<p id="par_id161521663319918" class="paragraph" dir="auto"></p>
</div>
<a name="Section17"></a>
<a name="bm_id3163397"></a>
<meta itemprop="keywords" content="SINH function">
<a name="bm_id3163409"></a>
<h2 id="hd_id3163397" dir="auto">SINH</h2>
<p id="par_id3163426" class="paragraph" dir="auto"><span class="avis">Returns the hyperbolic sine of a number.</span></p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3163457" class="code" dir="auto">SINH(Number)</p>
<p id="par_id3163471" class="paragraph" dir="auto">Returns the hyperbolic sine of <span class="emph">Number</span>.</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3163504" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=SINH(0)</span> returns 0, the hyperbolic sine of 0.</p>
<div class="embedded">
<a name="trigon"></a>
<p id="par_id161521663319918" class="paragraph" dir="auto"></p>
</div>
<a name="Section6"></a>
<a name="bm_id3164375"></a>
<meta itemprop="keywords" content="SQRT function">
<meta itemprop="keywords" content="square roots,positive numbers">
<a name="bm_id3164387"></a>
<h2 id="hd_id3164375" dir="auto">SQRT</h2>
<p id="par_id3164404" class="paragraph" dir="auto"><span class="avis">Returns the positive square root of a number.</span></p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3164437" class="code" dir="auto">SQRT(Number)</p>
<p id="par_id3164451" class="paragraph" dir="auto">Returns the positive square root of <span class="emph">Number</span>.</p>
<p id="par_id6870021" class="paragraph" dir="auto">Number must be positive.</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3164484" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=SQRT(16)</span> returns 4.</p>
<p id="par_id3591723" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=SQRT(-16)</span> returns an <span class="literal">invalid argument</span> error.</p>
<a name="Section5"></a>
<a name="bm_id3164560"></a>
<meta itemprop="keywords" content="SQRTPI function">
<meta itemprop="keywords" content="square roots,products of Pi">
<a name="bm_id3164572"></a>
<h2 id="hd_id3164560" dir="auto">SQRTPI</h2>
<p id="par_id3164596" class="paragraph" dir="auto"><span class="avis">Returns the square root of (PI times a number).</span></p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3164627" class="code" dir="auto">SQRTPI(Number)</p>
<p id="par_id1501510" class="paragraph" dir="auto">Returns the positive square root of (PI multiplied by <span class="emph">Number</span>).</p>
<p id="par_id9929197" class="paragraph" dir="auto">This is equivalent to <span class="literal">SQRT(PI()*Number)</span>.</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3164654" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=SQRTPI(2)</span> returns the squareroot of (2PI), approximately 2.506628.</p>
<a name="Section12"></a>
<a name="bm_id3165633"></a>
<meta itemprop="keywords" content="AutoFilter function, subtotals">
<meta itemprop="keywords" content="sums,of filtered data">
<meta itemprop="keywords" content="filtered data, sums">
<meta itemprop="keywords" content="SUBTOTAL function">
<a name="bm_id3165644"></a>
<h2 id="hd_id3165633" dir="auto">SUBTOTAL</h2>
<p id="par_id3165682" class="paragraph" dir="auto"><span class="avis">Calculates subtotals.</span> 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.</p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3165717" class="code" dir="auto">SUBTOTAL(Function; Range)</p>
<p id="par_id3165731" class="paragraph" dir="auto"><span class="emph">Function</span> is a number that stands for one of the following functions:</p>
<table border="1" class="" cellpadding="0" cellspacing="0">
<tr>
<th rowspan="" colspan="" class="tableheadcell" dir="auto">
<p id="par_id3165782" class="tableheadintable" dir="auto">Function index</p>
<p id="par_id20082017081856189" class="tableheadintable" dir="auto">(includes hidden values)</p>
</th>
<th rowspan="" colspan="" class="tableheadcell" dir="auto">
<p id="par_id200820170716337755" class="tableheadintable" dir="auto">Function index</p>
<p id="par_id200820170818568679" class="tableheadintable" dir="auto">(ignores hidden values)</p>
</th>
<th rowspan="" colspan="" class="tableheadcell" dir="auto">
<p id="par_id3165806" class="tableheadintable" dir="auto">Function</p>
</th>
</tr>
<tr>
<td rowspan="" colspan="" dir="auto">
<p id="par_id3165833" class="paragraphintable" dir="auto">1</p>
</td>
<td rowspan="" colspan="" dir="auto">
<p id="par_id20082017071634481" class="paragraphintable" dir="auto">101</p>
</td>
<td rowspan="" colspan="" dir="auto">
<p id="par_id3165856" class="paragraphintable" dir="auto">AVERAGE</p>
</td>
</tr>
<tr>
<td rowspan="" colspan="" dir="auto">
<p id="par_id3165883" class="paragraphintable" dir="auto">2</p>
</td>
<td rowspan="" colspan="" dir="auto">
<p id="par_id200820170716349348" class="paragraphintable" dir="auto">102</p>
</td>
<td rowspan="" colspan="" dir="auto">
<p id="par_id3165906" class="paragraphintable" dir="auto">COUNT</p>
</td>
</tr>
<tr>
<td rowspan="" colspan="" dir="auto">
<p id="par_id3165933" class="paragraphintable" dir="auto">3</p>
</td>
<td rowspan="" colspan="" dir="auto">
<p id="par_id200820170716342109" class="paragraphintable" dir="auto">103</p>
</td>
<td rowspan="" colspan="" dir="auto">
<p id="par_id3165956" class="paragraphintable" dir="auto">COUNTA</p>
</td>
</tr>
<tr>
<td rowspan="" colspan="" dir="auto">
<p id="par_id3165983" class="paragraphintable" dir="auto">4</p>
</td>
<td rowspan="" colspan="" dir="auto">
<p id="par_id200820170716348854" class="paragraphintable" dir="auto">104</p>
</td>
<td rowspan="" colspan="" dir="auto">
<p id="par_id3166006" class="paragraphintable" dir="auto">MAX</p>
</td>
</tr>
<tr>
<td rowspan="" colspan="" dir="auto">
<p id="par_id3166033" class="paragraphintable" dir="auto">5</p>
</td>
<td rowspan="" colspan="" dir="auto">
<p id="par_id20082017071634799" class="paragraphintable" dir="auto">105</p>
</td>
<td rowspan="" colspan="" dir="auto">
<p id="par_id3166056" class="paragraphintable" dir="auto">MIN</p>
</td>
</tr>
<tr>
<td rowspan="" colspan="" dir="auto">
<p id="par_id3143316" class="paragraphintable" dir="auto">6</p>
</td>
<td rowspan="" colspan="" dir="auto">
<p id="par_id200820170716342762" class="paragraphintable" dir="auto">106</p>
</td>
<td rowspan="" colspan="" dir="auto">
<p id="par_id3143339" class="paragraphintable" dir="auto">PRODUCT</p>
</td>
</tr>
<tr>
<td rowspan="" colspan="" dir="auto">
<p id="par_id3143366" class="paragraphintable" dir="auto">7</p>
</td>
<td rowspan="" colspan="" dir="auto">
<p id="par_id200820170716348779" class="paragraphintable" dir="auto">107</p>
</td>
<td rowspan="" colspan="" dir="auto">
<p id="par_id3143389" class="paragraphintable" dir="auto">STDEV</p>
</td>
</tr>
<tr>
<td rowspan="" colspan="" dir="auto">
<p id="par_id3143416" class="paragraphintable" dir="auto">8</p>
</td>
<td rowspan="" colspan="" dir="auto">
<p id="par_id200820170716355943" class="paragraphintable" dir="auto">108</p>
</td>
<td rowspan="" colspan="" dir="auto">
<p id="par_id3143439" class="paragraphintable" dir="auto">STDEVP</p>
</td>
</tr>
<tr>
<td rowspan="" colspan="" dir="auto">
<p id="par_id3143466" class="paragraphintable" dir="auto">9</p>
</td>
<td rowspan="" colspan="" dir="auto">
<p id="par_id200820170716355993" class="paragraphintable" dir="auto">109</p>
</td>
<td rowspan="" colspan="" dir="auto">
<p id="par_id3143489" class="paragraphintable" dir="auto">SUM</p>
</td>
</tr>
<tr>
<td rowspan="" colspan="" dir="auto">
<p id="par_id3143516" class="paragraphintable" dir="auto">10</p>
</td>
<td rowspan="" colspan="" dir="auto">
<p id="par_id200820170716351843" class="paragraphintable" dir="auto">110</p>
</td>
<td rowspan="" colspan="" dir="auto">
<p id="par_id3143539" class="paragraphintable" dir="auto">VAR</p>
</td>
</tr>
<tr>
<td rowspan="" colspan="" dir="auto">
<p id="par_id3143566" class="paragraphintable" dir="auto">11</p>
</td>
<td rowspan="" colspan="" dir="auto">
<p id="par_id200820170716353789" class="paragraphintable" dir="auto">111</p>
</td>
<td rowspan="" colspan="" dir="auto">
<p id="par_id3143589" class="paragraphintable" dir="auto">VARP</p>
</td>
</tr>
</table>
<br>
<p id="par_id20082017075115609" class="paragraph" dir="auto">Use numbers 1-11 to include manually hidden rows or 101-111 to exclude them; filtered-out cells are always excluded.</p>
<p id="par_id3143606" class="paragraph" dir="auto"><span class="emph">Range</span> is the range whose cells are included.</p>
<div class="embedded">
<a name="datenumbersequencenote"></a>
<div class="note">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/note.svg" alt="note" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="par_id301616845402409" dir="auto">This function ignores any text or empty cell within a data range. If you suspect wrong results from this function, look for text in the data ranges. To highlight text contents in a data range, use the <a target="_top" href="en-US/text/scalc/01/03080000.html">value highlighting</a> feature.</p></div>
</div>
<br>
</div>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3143638" class="paragraph" dir="auto">You have a table in the cell range A1:B6 containing a bill of material for 10 students. Row 2 (Pen) is manually hidden. 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:</p>
<table border="1" class="" cellpadding="0" cellspacing="0">
<tr>
<th rowspan="" colspan="" class="tableheadcell" dir="auto">
<p id="par_id200820170806057438" class="tableheadintable" dir="auto"></p>
</th>
<th rowspan="" colspan="" class="tableheadcell" dir="auto">
<p id="par_id200820170751186827" class="tableheadintable" dir="auto">A</p>
</th>
<th rowspan="" colspan="" class="tableheadcell" dir="auto">
<p id="par_id200820170751186410" class="tableheadintable" dir="auto">B</p>
</th>
</tr>
<tr>
<th rowspan="" colspan="" class="tableheadcell" dir="auto">
<p id="par_id200820170751189874" class="tableheadintable" dir="auto">1</p>
</th>
<td rowspan="" colspan="" dir="auto">
<p id="par_id200820170751186696" class="tablecontentintable" dir="auto"><span class="emph">ITEM</span></p>
</td>
<td rowspan="" colspan="" dir="auto">
<p id="par_id20082017075118422" class="tablecontentintable" dir="auto"><span class="emph">QUANTITY</span></p>
</td>
</tr>
<tr>
<th rowspan="" colspan="" class="tableheadcell" dir="auto">
<p id="par_id200820170751187332" class="tableheadintable" dir="auto">2</p>
</th>
<td rowspan="" colspan="" dir="auto">
<p id="par_id200820170751195726" class="tablecontentintable" dir="auto">Pen</p>
</td>
<td rowspan="" colspan="" dir="auto">
<p id="par_id200820170751199921" class="tablecontentintable" dir="auto">10</p>
</td>
</tr>
<tr>
<th rowspan="" colspan="" class="tableheadcell" dir="auto">
<p id="par_id200820170751197796" class="tableheadintable" dir="auto">3</p>
</th>
<td rowspan="" colspan="" dir="auto">
<p id="par_id200820170751195912" class="tablecontentintable" dir="auto">Pencil</p>
</td>
<td rowspan="" colspan="" dir="auto">
<p id="par_id200820170751195191" class="tablecontentintable" dir="auto">10</p>
</td>
</tr>
<tr>
<th rowspan="" colspan="" class="tableheadcell" dir="auto">
<p id="par_id200820170751193908" class="tableheadintable" dir="auto">4</p>
</th>
<td rowspan="" colspan="" dir="auto">
<p id="par_id200820170751199399" class="tablecontentintable" dir="auto">Notebook</p>
</td>
<td rowspan="" colspan="" dir="auto">
<p id="par_id200820170751204129" class="tablecontentintable" dir="auto">10</p>
</td>
</tr>
<tr>
<th rowspan="" colspan="" class="tableheadcell" dir="auto">
<p id="par_id200820170751201815" class="tableheadintable" dir="auto">5</p>
</th>
<td rowspan="" colspan="" dir="auto">
<p id="par_id200820170751201323" class="tablecontentintable" dir="auto">Rubber</p>
</td>
<td rowspan="" colspan="" dir="auto">
<p id="par_id20082017075120380" class="tablecontentintable" dir="auto">10</p>
</td>
</tr>
<tr>
<th rowspan="" colspan="" class="tableheadcell" dir="auto">
<p id="par_id20082017075120914" class="tableheadintable" dir="auto">6</p>
</th>
<td rowspan="" colspan="" dir="auto">
<p id="par_id200820170751204884" class="tablecontentintable" dir="auto">Sharpener</p>
</td>
<td rowspan="" colspan="" dir="auto">
<p id="par_id200820170751204938" class="tablecontentintable" dir="auto">10</p>
</td>
</tr>
</table>
<br>
<p id="par_id3143658" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=SUBTOTAL(9;B2:B6) returns 50.</span></p>
<p id="par_id200820170751218092" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=SUBTOTAL(109;B2:B6) returns 40.</span></p>
<a name="Section15"></a>
<a name="bm_id3151957"></a>
<meta itemprop="keywords" content="SUMIF function">
<meta itemprop="keywords" content="adding,specified numbers">
<a name="bm_id3151969"></a>
<h2 id="hd_id3151957" dir="auto">
<a name="sumif_head"></a><a target="_top" href="en-US/text/scalc/01/04060106.html#Section15">SUMIF</a>
</h2>
<p id="par_id3151986" class="paragraph" dir="auto"><span class="avis">Adds the cells specified by a given criterion.</span> This function is used to sum a range when you search for a certain value.</p>
<div class="embedded">
<a name="regex"></a>
<p id="par_id3147418" class="paragraph" dir="auto">The search supports wildcards or <a target="_top" href="en-US/text/shared/01/02100001.html">regular expressions</a>. With regular expressions enabled, you can enter "all.*", for example to find the first location of "all" followed by any characters. If you want to search for a text that is also a regular expression, you must either precede every regular expression metacharacter or operator with a "\" character, or enclose the text into \Q...\E. You can switch the automatic evaluation of wildcards or regular expression on and off in <a target="_top" href="en-US/text/shared/optionen/01060500.html"><span id="swlnsystextshared0000000001xml_3" class="switchinline"><span hidden="true" id="MACtextshared0000000001xml_3" class="MAC"><span class="menuitem">LibreOffice - Preferences</span></span><span hidden="true" id="defaulttextshared0000000001xml_3"><span class="menuitem">Tools - Options</span></span></span><span class="menuitem"> - LibreOffice Calc - Calculate</span></a>.</p>
<a name="regexnumex"></a>
<div class="warning">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/warning.svg" alt="warning" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="par_id651572973288601" dir="auto">When using functions where one or more arguments are search criteria strings that represents a regular expression, the first attempt is to convert the string criteria to numbers. For example, ".0" will convert to 0.0 and so on. If successful, the match will not be a regular expression match but a numeric match. However, when switching to a locale where the decimal separator is not the dot makes the regular expression conversion work. To force the evaluation of the regular expression instead of a numeric expression, use some expression that can not be misread as numeric, such as ".[0]" or ".\0" or "(?i).0". </p></div>
</div>
<br>
</div>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3152028" class="code" dir="auto">SUMIF(Range; Criterion [; SumRange])</p>
<p id="par_id3152043" class="paragraph" dir="auto"><span class="emph">Range</span> is the range to which the criterion is to be applied.</p>
<div class="embedded">
<a name="criterion"></a>
<p id="par_id621619279022341" class="paragraph" dir="auto"><span class="emph">Criterion</span>: A criterion is a single cell Reference, Number or Text. It is used in comparisons with cell contents.</p>
<p id="par_id731619279029255" class="paragraph" dir="auto">A reference to an empty cell is interpreted as the numeric value 0.</p>
<p id="par_id31619279035359" class="paragraph" dir="auto">A matching expression can be:</p>
<ul itemprop="Unordered" itemscope="true" itemtype="http://schema.org/ItemList" dir="auto">
<li itemprop="itemListElement" itemscope="true" itemtype="http://schema.org/ItemListUnordered" dir="auto">
<p id="par_id171619279059462" class="listitem" dir="auto">A Number or Logical value. A matching cell content equals the Number or Logical value. </p>
</li>
<li itemprop="itemListElement" itemscope="true" itemtype="http://schema.org/ItemListUnordered" dir="auto">
<p id="par_id511619279076504" class="listitem" dir="auto">A value beginning with a comparator (<, <=, =, >, >=, <>).</p>
<p id="par_id11619279168512" class="paragraph" dir="auto">For =, if the value is empty it matches empty cells.</p>
<p id="par_id161619279207350" class="paragraph" dir="auto">For <>, if the value is empty it matches non-empty cells.</p>
<p id="par_id271619279215695" class="paragraph" dir="auto">For <>, if the value is not empty it matches any cell content except the value, including empty cells.</p>
<p id="par_id861619279223855" class="paragraph" dir="auto"><span class="emph">Note:</span> "=0" does not match empty cells.</p>
<p id="par_id51619279363954" class="paragraph" dir="auto">For = and <>, if the value is not empty and can not be interpreted as a Number type or one of its subtypes and the property <a target="_top" href="en-US/text/shared/optionen/01060500.html">Search criteria = and <> must apply to whole cells</a> is checked, comparison is against the entire cell contents, if unchecked, comparison is against any subpart of the field that matches the criteria. For = and <>, if the value is not empty and can not be interpreted as a Number type or one of its subtypes applies. </p>
</li>
<li itemprop="itemListElement" itemscope="true" itemtype="http://schema.org/ItemListUnordered" dir="auto">
<p id="par_id801619279323556" class="listitem" dir="auto">Other Text value. If the property <a target="_top" href="en-US/text/shared/optionen/01060500.html">Search criteria = and <> must apply to whole cells</a> is true, the comparison is against the entire cell contents, if false, comparison is against any subpart of the field that matches the criteria. The expression can contain text, numbers, regular expressions or wildcards (<a target="_top" href="en-US/text/shared/optionen/01060500.html#wildcards">if enabled in calculation options</a>).</p>
</li>
</ul>
</div>
<p id="par_id3152083" class="paragraph" dir="auto"><span class="emph">SumRange</span> is the range from which values are summed. If this parameter has not been indicated, the values found in the Range are summed.</p>
<div class="note">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/note.svg" alt="note" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="par_id8347422" dir="auto">SUMIF supports the reference concatenation operator (~) only in the Range parameter, and only if the optional SumRange parameter is not given.</p></div>
</div>
<br>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3152148" class="paragraph" dir="auto">To sum up only negative numbers: <span class="input" data-tooltip="Click on text to copy to clipboard">=SUMIF(A1:A10;"<0")</span></p>
<p id="par_id6670125" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=SUMIF(A1:A10;">0";B1:B10)</span> - sums values from the range B1:B10 only if the corresponding values in the range A1:A10 are >0.</p>
<p id="par_id6062196" class="paragraph" dir="auto">See COUNTIF() for some more syntax examples that can be used with SUMIF().</p>
<a name="Section25"></a>
<a name="bm_id3160340"></a>
<meta itemprop="keywords" content="SUMSQ function">
<meta itemprop="keywords" content="square number additions">
<meta itemprop="keywords" content="sums,of square numbers">
<a name="bm_id3160351"></a>
<h2 id="hd_id3160340" dir="auto">SUMSQ</h2>
<p id="par_id3160368" class="paragraph" dir="auto"><span class="avis">Calculates the sum of the squares of a set of numbers.</span></p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3160402" class="code" dir="auto">SUMSQ(Number 1 [; Number 2 [; … [; Number 255]]])</p>
<div class="embedded">
<a name="number255"></a>
<p id="par_id931584395947010" class="paragraph" dir="auto"><span class="emph">Number 1, Number 2, … , Number 255</span> are numbers, references to cells or to cell ranges of numbers.</p>
</div>
<div class="embedded">
<a name="datenumbersequencenote"></a>
<div class="note">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/note.svg" alt="note" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="par_id301616845402409" dir="auto">This function ignores any text or empty cell within a data range. If you suspect wrong results from this function, look for text in the data ranges. To highlight text contents in a data range, use the <a target="_top" href="en-US/text/scalc/01/03080000.html">value highlighting</a> feature.</p></div>
</div>
<br>
</div>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3160449" class="paragraph" dir="auto">If you enter the numbers 2; 3 and 4 in the Number 1; 2 and 3 arguments, 29 is returned as the result.</p>
<a name="Section14"></a>
<a name="bm_id3152195"></a>
<meta itemprop="keywords" content="TAN function">
<a name="bm_id3152207"></a>
<h2 id="hd_id3152195" dir="auto">TAN</h2>
<p id="par_id3152224" class="paragraph" dir="auto"><span class="avis">Returns the tangent of the given angle (in radians).</span></p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3152255" class="code" dir="auto">TAN(Number)</p>
<p id="par_id3152269" class="paragraph" dir="auto">Returns the (trigonometric) tangent of <span class="emph">Number</span>, the angle in radians.</p>
<p id="par_id5752128" class="paragraph" dir="auto">To return the tangent of an angle in degrees, use the RADIANS function.</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3152301" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=TAN(PI()/4) </span>returns 1, the tangent of PI/4 radians.</p>
<p id="par_id1804864" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=TAN(RADIANS(45))</span> returns 1, the tangent of 45 degrees.</p>
<div class="embedded">
<a name="trigon"></a>
<p id="par_id161521663319918" class="paragraph" dir="auto"></p>
</div>
<a name="Section13"></a>
<a name="bm_id3165434"></a>
<meta itemprop="keywords" content="TANH function">
<a name="bm_id3165446"></a>
<h2 id="hd_id3165434" dir="auto">TANH</h2>
<p id="par_id3165462" class="paragraph" dir="auto"><span class="avis">Returns the hyperbolic tangent of a number.</span></p>
<div class="embedded">
<a name="sectionsyntax"></a>
<h4 id="hd_id3152015" dir="auto">Syntax</h4>
</div>
<p id="par_id3165494" class="code" dir="auto">TANH(Number)</p>
<p id="par_id3165508" class="paragraph" dir="auto">Returns the hyperbolic tangent of <span class="emph">Number</span>.</p>
<div class="embedded">
<a name="sectionexample"></a>
<h4 id="hd_id281171" dir="auto">Example</h4>
</div>
<p id="par_id3165541" class="paragraph" dir="auto"><span class="input" data-tooltip="Click on text to copy to clipboard">=TANH(0)</span> returns 0, the hyperbolic tangent of 0.</p>
<div class="embedded">
<a name="trigon"></a>
<p id="par_id161521663319918" class="paragraph" dir="auto"></p>
</div>
<a name="trunc"></a>
<h2 id="hd_id561641930400206" dir="auto"><a target="_top" href="en-US/text/scalc/01/func_trunc.html">TRUNC</a></h2>
<div class="embedded">
<a name="trunc_desc"></a>
<p id="par_id841641927277474" class="paragraph" dir="auto">Truncates a number while keeping a specified number of decimal digits.</p>
</div>
<a name="relatedtopics"></a><div class="relatedtopics">
<p class="related" itemprop="mentions" dir="auto"><a name="related"></a><span class="emph">Related Topics</span>
</p>
<div class="relatedbody" itemprop="mentions">
<div class="embedded"><p class="embedded" dir="auto"><a target="_top" href="en-US/text/scalc/01/04060100.html">Functions by Category</a></p></div>
</div>
</div>
</div>
<div id="DonationFrame"></div>
<footer><div id="DEBUG" class="debug">
<h3 class="bug">Help content debug info:</h3>
<p dir="auto">This page is: <a href="https://opengrok.libreoffice.org/xref/help/source/text/scalc/01/04060106.xhp" target="_blank">/text/scalc/01/04060106.xhp</a></p>
<p dir="auto">Title is: Mathematical Functions</p>
<p id="bm_module" dir="auto"></p>
<p id="bm_system" dir="auto"></p>
<p id="bm_HID" dir="auto"></p>
</div></footer>
</body>
</html>