Difference between revisions of "Manuals/calci/ROUND"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "<div id="16SpaceContent" align="left"><div class="ZEditBox" align="justify"> Syntax </div></div> ---- <div id="4SpaceContent" align="left"><div class="ZEditBox" align=...")
 
Line 1: Line 1:
<div id="16SpaceContent" align="left"><div class="ZEditBox" align="justify">
+
=ROUND(number, num_of_digits)=
  
Syntax
+
*Where 'number' is the number to round and
 +
*'num_of_digits' is the number of digits before or after decimal point.
  
</div></div>
+
ROUND() rounds the number to specified number of digits.
----
 
<div id="4SpaceContent" align="left"><div class="ZEditBox" align="justify">
 
  
Remarks
+
== Description ==
  
</div></div>
+
ROUND(number, num_of_digits)
----
 
<div id="2SpaceContent" align="left"><div class="ZEditBox" align="justify">
 
  
Examples
+
For Example,
  
</div></div>
+
ROUND(3.6712,2) ''returns 3.67''
----
 
<div id="8SpaceContent" align="left"><div class="ZEditBox" align="justify">'''<font face="Times New Roman">''''''''''''<font size="6"> </font>''' '''''''''</font>'''</div></div>
 
----
 
<div id="11SpaceContent" align="left"><div class="ZEditBox mceEditable" align="justify">
 
  
<font size="5">Description</font>
+
*When Nd is greater than zero,the number is rounded to the specified number of decimal places.
 +
*When  Nd is 0, the number is rounded to the nearest integer.
 +
*When Nd  is less than 0, the number is rounded to the left of the decimal point.
  
</div></div>
 
----
 
<div id="10SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">'''<font face="Times New Roman"> <font size="6">ROUND</font> </font>'''</div></div>
 
----
 
<div id="3SpaceContent" class="zcontent" align="left"><br /><div id="7Space" class="gamizbox" title="7Space"><div id="7SpaceHeader" class="zheaderstyle" title="Double-click to start and stop editing the header."><center></center></div><div id="7SpaceRollup" title="Double-click to rolldown" align="left"><span><span id="7SpaceRollupContent" align="center"></span></span></div><div id="7SpaceCover"><div id="7SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"><font size="3" face="Times New Roman"> </font>
 
  
'''ROUND''' ('''N''',Nd)
 
  
'''N'''   is the number which is to round and Nd specifies the number of digits.
+
== Examples ==
  
</div></div>
 
----
 
 
<div id="6SpaceContent" class="zcontent" align="left">
 
<div id="6SpaceContent" class="zcontent" align="left">
  
 
{| id="TABLE3" class="SpreadSheet blue"
 
{| id="TABLE3" class="SpreadSheet blue"
 
|- class="even"
 
|- class="even"
| class=" " |
+
| class="  " | '''Function'''
| Column1
+
| class="  " | '''Output'''
| class="      SelectTD SelectTD" |
 
<div id="6Space_Handle" title="Click and Drag to resize CALCI Column/Row/Cell. It is EZ!"></div><div id="6Space_Copy" title="Click and Drag over to AutoFill other cells."></div>Column2
 
| class="  " | Column3
 
| class="  " |
 
| Column4
 
 
|
 
|
 
|- class="odd"
 
|- class="odd"
| class=" " | Row1
 
 
| class="sshl_f" | 3.6712
 
| class="sshl_f" | 3.6712
 
| class="sshl_f" | 2
 
| class="sshl_f" | 2
| class="sshl_f" |
 
|
 
|
 
 
|
 
|
 
|- class="even"
 
|- class="even"
| class="  " | Row2
 
 
| class="sshl_f" | 3.67
 
| class="sshl_f" | 3.67
 
| class="sshl_f" |
 
| class="sshl_f" |
| class="sshl_f" |
 
|
 
|
 
 
|
 
|
 
|- class="odd"
 
|- class="odd"
| Row3
 
| class="sshl_f" |
 
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
|
 
|
 
 
|
 
|
 
|- class="even"
 
|- class="even"
| Row4
 
 
| class="sshl_f" |
 
| class="sshl_f" |
|
+
| class="sshl_f" |
|
 
|
 
|
 
 
|
 
|
 
|- class="odd"
 
|- class="odd"
| Row6
+
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|
 
|
|
 
|
 
|
 
| class="  " |
 
<div id="6Space_Handle" title="Click and Drag to resize CALCI Column/Row/Cell. It is EZ!"></div><div id="6Space_Copy" title="Click and Drag over to AutoFill other cells."></div>
 
 
|}
 
|}
 
<div align="left"></div>''''''</div></div>
 
----
 
<div id="13SpaceContent" class="zcontent" align="left"><br /><br /><div id="1Space" class="gamizbox" title="1Space"><div id="1SpaceHeader" class="zheaderstyle" title="Double-click to start and stop editing the header."><center></center></div><div id="1SpaceRollup" title="Double-click to rolldown" align="left"><span><span id="1SpaceRollupContent" align="center"></span></span></div><div id="1SpaceCover"><div id="1SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">
 
 
<font size="3">·</font>        <font size="3"><font face="Times New Roman">When Nd is greater than zero,the number is rounded to the specified number of decimal places. </font></font>
 
 
<font size="3">·</font>        <font size="3"><font face="Times New Roman">When  Nd is 0, the number is rounded to the nearest integer. </font></font>
 
 
<font size="3">·</font>        <font size="3"><font face="Times New Roman">When Nd  is less than 0, the number is rounded to the left of the decimal point. </font></font>
 
 
<font size="3" face="Times New Roman"> </font>
 
 
</div></div>
 
----
 
<div id="14SpaceContent" class="zcontent" align="left"><br /><br /><br /><div id="5Space" class="gamizbox" title="5Space"><div id="5SpaceHeader" class="zheaderstyle" title="Double-click to start and stop editing the header."><center></center></div><div id="5SpaceRollup" title="Double-click to rolldown" align="left"><span><span id="5SpaceRollupContent" align="center"></span></span></div><div id="5SpaceCover"><div id="5SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"><font size="3"><font face="Times New Roman">Rounds a number to a specified number of digits.</font></font></div></div>
 
----
 
<div id="12SpaceContent" class="zcontent" align="left"><br /><br /><br /><div id="9Space" class="gamizbox" title="9Space"><div id="9SpaceHeader" class="zheaderstyle" title="Double-click to start and stop editing the header."><center></center></div><div id="9SpaceRollup" title="Double-click to rolldown" align="left"><span><span id="9SpaceRollupContent" align="center"></span></span></div><div id="9SpaceCover"><div id="9SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">
 
 
<font size="3"><font face="Times New Roman">Let’s see an example in (Column1 Row 1,Column2Row1)</font></font>
 
 
<font size="3">ROUND (N,Nd)</font>
 
 
<font size="3">ROUND (C1R1,C2R1)</font>
 
 
<font size="3">i.e. =ROUND(3.6712,2) is 3.67</font>
 
 
</div></div>
 
----
 
</div></div></div></div></div></div></div></div></div></div></div>
 

Revision as of 13:24, 27 November 2013

ROUND(number, num_of_digits)

  • Where 'number' is the number to round and
  • 'num_of_digits' is the number of digits before or after decimal point.

ROUND() rounds the number to specified number of digits.

Description

ROUND(number, num_of_digits)

For Example,

ROUND(3.6712,2) returns 3.67

  • When Nd is greater than zero,the number is rounded to the specified number of decimal places.
  • When Nd is 0, the number is rounded to the nearest integer.
  • When Nd is less than 0, the number is rounded to the left of the decimal point.


Examples

Function Output
3.6712 2
3.67