Files
Maxim Kadushkin 035166509d Merge pull request #2755 from ONLYOFFICE/feature/update-lunr-without-kor
Feature/update lunr without kor
2023-12-21 16:25:39 +03:00

49 lines
2.5 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>BASE Function</title>
<meta charset="utf-8" />
<meta name="description" content="" />
<link type="text/css" rel="stylesheet" href="../../../../../../common/main/resources/help/editor.css" />
<link type = "text/css" rel = "stylesheet" href = "../../images/sprite.css" />
<script type="text/javascript" src="../callback.js"></script>
<script type="text/javascript" src="../../../../../../common/main/resources/help/search/js/page-search.js"></script>
</head>
<body>
<div class="mainpart">
<div class="search-field">
<input id="search" class="searchBar" placeholder="Search" type="text" onkeypress="doSearch(event)">
</div>
<h1>BASE Function</h1>
<p>The <b>BASE</b> function is one of the <a href="../UsageInstructions/InsertFunction.htm#mathtrigonometry" onclick="onhyperlinkclick(this)">math and trigonometry functions</a>. It is used to convert a number into a text representation with the given base.</p>
<h3>Syntax</h3>
<p><b><em>BASE(number, radix, [min_length])</em></b></p>
<p>The <b>BASE</b> function has the following arguments:</p>
<table style="width: 40%">
<tr>
<th style="background-color: #f4f4f4" width="150ch"><b>Argument</b></th>
<th style="background-color: #f4f4f4"><b>Description</b></th>
</tr>
<tr>
<td><b><em>number</em></b></td>
<td>A number you want to convert. An integer greater than or equal to 0 and less than 2^53.</td>
</tr>
<tr>
<td><b><em>radix</em></b></td>
<td>A base you want to convert the number to. An integer greater than or equal to 2 and less than or equal to 36.</td>
</tr>
<tr>
<td><b><em>min_length</em></b></td>
<td>A minimum length of the returned string. An integer greater than or equal to 0 and less than 256. It is an optional parameter. If the result is shorter than the minimum lenght specified, leading zeros are added to the string.</td>
</tr>
</table>
<h3>Notes</h3>
<p><a href="../UsageInstructions/InsertFunction.htm#applyfunction" onclick="onhyperlinkclick(this)">How to apply</a> the <b>BASE</b> function.</p>
<h3>Examples</h3>
<p>The figure below displays the result returned by the <b>BASE</b> function.</p>
<p><img alt="BASE Function" src="../images/base.png" /></p>
</div>
</body>
</html>