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=...")
 
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<div id="16SpaceContent" align="left"><div class="ZEditBox" align="justify">
+
<div style="font-size:30px">'''FLOOR(Number, Significance)'''</div><br/>
 +
*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.
  
Syntax
+
== Description ==
  
</div></div>
+
FLOOR(Number, Significance)
----
 
<div id="4SpaceContent" align="left"><div class="ZEditBox" align="justify">
 
  
Remarks
+
For Example,
  
</div></div>
+
FLOOR (3.5, 2) ''returns 2''.
----
 
<div id="2SpaceContent" align="left"><div class="ZEditBox" align="justify">
 
  
Examples
+
FLOOR (-4.6, -2) ''returns -4''.
  
</div></div>
+
*Calci returns an NaN error message if the 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.
----
+
*If significance value is not mentioned, Calci assumes it to be 1.
<div id="11SpaceContent" align="left"><div class="ZEditBox mceEditable" align="justify">
+
*This function can also be used for array of numbers in form of equation as-
  
<font size="5">Description</font>
+
  a) FLOOR(3.33..6.33,0.1) where x varies from 3.33 to 6.33 and displays output to multiples of 0.1. <br>''Displays 3.3,4.3,5.3,6.3'' as output.
  
</div></div>
+
  b) 2.5..4.5|FLOOR(x+2,2)| where x varies from 2.5 to 4.5 , <br>adds value 2 and displays output to multiples of 2. ''Displays 4,4,6'' as output.  
----
 
<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''')
+
== Examples ==
  
'''Where N''' is the numeric value and '''Signi''' is the multiple to round up.
+
<div id="6SpaceContent" class="zcontent" align="left">
 +
 
 +
{| id="TABLE3" class="SpreadSheet blue"
 +
|- class="even"
 +
| class="  " | '''Function'''
 +
| class="  " | '''Output'''
 +
|- class="odd"
 +
| class="sshl_f" |FLOOR(55.55,5)
 +
| class="sshl_f" |55
 +
|- class="even"
 +
| class="sshl_f" |FLOOR(1000.34,3)
 +
| class="sshl_f" |999
 +
|- class="odd"
 +
| class="sshl_f" |FLOOR(22.3)
 +
| class="sshl_f" |22
 +
|- class="even"
 +
| class="sshl_f" |FLOOR(-143.56,-1)
 +
| class="sshl_f" |-143
 +
|}
 +
 
 +
==Related Videos==
  
</font></font></div></div>
+
{{#ev:youtube|mJaqx05SOlM|280|center|FLOOR AND CEILING}}
----
 
<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>
+
== See Also ==
  
·        <font face="Times New Roman">If the number is an exact multiple of significance, no rounding will occur. </font>
+
*[[Manuals/calci/CEILING | CEILING]]
  
<font face="Times New Roman"> </font>
+
*[[Manuals/calci/INT| INT]]
  
<font face="Times New Roman">. </font>
+
*[[Manuals/calci/ROUND | ROUND]]
  
</div></div>
+
*[[Manuals/calci/ROUNDUP | ROUNDUP]]
----
 
<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.
+
*[[Manuals/calci/ROUNDDOWN | ROUNDDOWN]]
  
</div></div>
+
*[[Manuals/calci/TRUNC| TRUNC]]
----
 
<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)
+
==References==
  
FLOOR
+
*[http://en.wikipedia.org/wiki/Rounding#Tie-breaking Rounding]
 +
*[http://http://en.wikipedia.org/wiki/Floor_and_ceiling_functions FLOOR Function]
  
FLOOR (C1R1, C2R1))''''''
 
  
That is FLOOR (3.5, 2) is 2
 
  
</font></font></div></div>
 
----
 
<div id="6SpaceContent" class="zcontent" align="left">
 
  
{| id="TABLE3" class="SpreadSheet blue"
+
*[[Z_API_Functions | List of Main Z Functions]]
|- class="even"
 
| class="  " |
 
<div id="6Space_Copy" title="Click and Drag over to AutoFill other cells."></div>
 
| Column1
 
| class="  " | Column2
 
| class="  " | Column3
 
| class="  " | Column4
 
|- class="odd"
 
| class=" " | Row1
 
| class=" " | 3.5
 
| class="sshl_f " | 2
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|- class="even"
 
| class="  " | Row2
 
| class="sshl_f" | 2
 
| class="sshl_f  " |
 
<div id="6Space_Copy" title="Click and Drag over to AutoFill other cells."></div>
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|- class="odd"
 
| Row3
 
| class="sshl_f  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>
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|- class="even"
 
| Row4
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|- class="odd"
 
| class=" " | Row5
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|- class="even"
 
| Row6
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|}
 
  
<div align="left">[[Image:calci1.gif]]</div></div>
+
*[[ Z3 |  Z3 home ]]
----
 
</div></div></div></div></div></div></div></div></div></div></div></div>
 

Latest revision as of 17:22, 17 August 2018

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) returns 2.

FLOOR (-4.6, -2) returns -4.

  • Calci returns an NaN error message if the 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.
  • If significance value is not mentioned, Calci assumes it to be 1.
  • This function can also be used for array of numbers in form of equation as-
 a) FLOOR(3.33..6.33,0.1) where x varies from 3.33 to 6.33 and displays output to multiples of 0.1. 
Displays 3.3,4.3,5.3,6.3 as output.
 b) 2.5..4.5|FLOOR(x+2,2)| where x varies from 2.5 to 4.5 , 
adds value 2 and displays output to multiples of 2. Displays 4,4,6 as output.

Examples

Function Output
FLOOR(55.55,5) 55
FLOOR(1000.34,3) 999
FLOOR(22.3) 22
FLOOR(-143.56,-1) -143

Related Videos

FLOOR AND CEILING

See Also

References