updated: help
git-svn-id: svn://ttmath.org/publicrep/ttcalc/trunk@118 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
67
help/rounding_functions.html
Normal file
67
help/rounding_functions.html
Normal file
@@ -0,0 +1,67 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<title>TTCalc - Rounding functions</title>
|
||||
<link rel="stylesheet" href="styles.css" type="text/css">
|
||||
<object type="application/x-oleobject" classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e">
|
||||
<param name="Keyword" value="int">
|
||||
<param name="Keyword" value="round">
|
||||
<param name="Keyword" value="ceil">
|
||||
<param name="Keyword" value="floor">
|
||||
</object>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<h1>Arithmetic functions</h1>
|
||||
|
||||
<p><strong>Note:</strong> If a function takes more than one argument, the arguments are separated with semicolon ';'.</p>
|
||||
|
||||
|
||||
<h2>Rounding functions</h2>
|
||||
|
||||
<dl>
|
||||
|
||||
<dt>int(x)</dt>
|
||||
<dd>This method returns only the integer part of x.<br>
|
||||
int(2.8)=2<br>
|
||||
int(2.2)=2<br>
|
||||
int(2)=2<br>
|
||||
int(-4.1)=-4<br>
|
||||
int(-4.8)=-4<br>
|
||||
</dd>
|
||||
|
||||
<dt>round(x)</dt>
|
||||
<dd>This method rounds the value of x to the nearest integer<br>
|
||||
round(2.8)=3<br>
|
||||
round(2.2)=2<br>
|
||||
round(2)=2<br>
|
||||
round(-4.1)=-4<br>
|
||||
round(-4.8)=-5</dd>
|
||||
|
||||
<dt>ceil(x)</dt>
|
||||
<dd>This function returns a value representing the smallest integer that is greater than or equal to x<br>
|
||||
ceil(2.8)=3<br>
|
||||
ceil(2.2)=3<br>
|
||||
ceil(2)=2<br>
|
||||
ceil(-4.1)=-4<br>
|
||||
ceil(-4.8)=-4</dd>
|
||||
|
||||
<dt>floor(x)</dt>
|
||||
<dd>This function returns a value representing the largest integer that is less than or equal to x<br>
|
||||
floor(2.8)=2<br>
|
||||
floor(2.2)=2<br>
|
||||
floor(2)=2<br>
|
||||
floor(-4.1)=-5<br>
|
||||
floor(-4.8)=-5</dd>
|
||||
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user