Difference between revisions of "Manuals/calci/FLOOR"

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">
+
=FLOOR(number, significance)=
  
Syntax
+
*Where 'number' is the numeric value to round and
 +
*significance' is the multiple to round the number.
  
</div></div>
+
FLOOR() rounds the number down towards zero, to its nearest multiple of significance.
----
 
<div id="4SpaceContent" align="left"><div class="ZEditBox" align="justify">
 
  
Remarks
+
== Description ==
  
</div></div>
+
FLOOR(number, significance)
----
 
<div id="2SpaceContent" align="left"><div class="ZEditBox" align="justify">
 
  
Examples
+
For Example,
 +
FLOOR (3.5, 2) is 2
  
</div></div>
+
*Calci returns an error value when argument is nonnumeric.
----
+
*Calci returns an error message if 'number' and 'significance' have different signs.
<div id="8SpaceContent" align="left"><div class="ZEditBox" align="justify">'''<font face="Times New Roman">''''''''''''<font size="6"> </font>''' '''''''''</font>'''</div></div>
+
*If the number is an exact multiple of significance, rounding will not be done. Calci will display the same number as output.
----
 
<div id="11SpaceContent" align="left"><div class="ZEditBox mceEditable" align="justify">
 
  
<font size="5">Description</font>
+
== Examples ==
  
</div></div>
 
----
 
<div id="10SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">'''<font face="Times New Roman"> <font size="6">FLOOR</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"><font face="Times New Roman"> 
 
 
'''FLOOR''' ('''N, Signi''')
 
 
'''Where N''' is the numeric value and '''Signi''' is the multiple to round up.
 
 
</font></font></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 face="Times New Roman">FLOOR returns an error value when argument is nonnumeric or N and Signi have different signs. </font>
 
 
·        <font face="Times New Roman">If the number is an exact multiple of significance, no rounding will occur. </font>
 
 
<font face="Times New Roman"> </font>
 
 
<font 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">
 
 
Floor rounds the numbers down to the nearest multiple of significance.
 
 
</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"> 
 
 
Lets see an example in (Column1, Row 1)
 
 
FLOOR
 
 
FLOOR (C1R1, C2R1))''''''
 
 
That is FLOOR (3.5, 2) is 2
 
 
</font></font></div></div>
 
----
 
 
<div id="6SpaceContent" class="zcontent" align="left">
 
<div id="6SpaceContent" class="zcontent" align="left">
  
Line 114: Line 68:
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|}
 
|}
 
<div align="left">[[Image:calci1.gif]]</div></div>
 
----
 
</div></div></div></div></div></div></div></div></div></div></div></div>
 

Revision as of 07:00, 2 December 2013

FLOOR(number, significance)

  • Where 'number' is the numeric value to round and
  • significance' is the multiple to round the number.

FLOOR() rounds the number down towards zero, to its nearest multiple of significance.

Description

FLOOR(number, significance)

For Example, FLOOR (3.5, 2) is 2

  • Calci returns an error value when argument is nonnumeric.
  • Calci returns an error message if 'number' and 'significance' have different signs.
  • If the number is an exact multiple of significance, rounding will not be done. Calci will display the same number as output.

Examples

Column1 Column2 Column3 Column4
Row1 3.5 2
Row2 2
Row3
Row4
Row5
Row6