Difference between revisions of "Manuals/calci/EVEN"

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=...")
 
 
(16 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">'''EVEN(Number)'''</div><br/>
 +
*where <math>Number</math> is the input number.
 +
**EVEN() rounds the number to the nearest even integer away from zero.
  
Syntax
+
== Description ==
 +
EVEN(number)
  
</div></div>
+
EVEN(51) ''returns 52''
----
 
<div id="4SpaceContent" align="left"><div class="ZEditBox" align="justify">
 
  
Remarks
+
*For a non-numeric <math>Number</math>, Calci returns an #NULL error message.
 +
*The <math>Number</math> is rounded up away from zero to its nearest even integer, irrespective of its sign.
 +
*EVEN() can be used with array of numbers as -
 +
In ZOS:
 +
*EVEN(1..10) or
 +
*1..10@EVEN
 +
In Calci:
 +
*=EVEN(1..10) or
 +
*=1..10@EVEN
  
</div></div>
+
{| class="wikitable"
----
+
|-
<div id="2SpaceContent" align="left"><div class="ZEditBox" align="justify">
+
! Numbers !! EVEN
 +
|-
 +
| 1 || 2
 +
|-
 +
| 2 || 2
 +
|-
 +
| 3 || 4
 +
|-
 +
| 4 || 4
 +
|-
 +
| 5 || 6
 +
|-
 +
| 6 || 6
 +
|-
 +
| 7 || 8
 +
|-
 +
| 8 || 8
 +
|-
 +
| 9 || 10
 +
|-
 +
| 10 || 10
 +
|}
  
Examples
+
== Examples ==
 +
<div id="6SpaceContent" class="zcontent" align="left">
  
</div></div>
+
{| id="TABLE3" class="SpreadSheet blue"
----
+
|- class="even"
<div id="8SpaceContent" align="left"><div class="ZEditBox" align="justify">'''<font face="Times New Roman">''''''''''''<font size="6"> </font>''' '''''''''</font>'''</div></div>
+
| class=" " | '''Function'''
----
+
| class=" " | '''Output'''
<div id="11SpaceContent" align="left"><div class="ZEditBox mceEditable" align="justify">
 
  
<font size="5">Description</font>
+
|- class="odd"
 +
| class="sshl_f" |EVEN(57)
 +
| class="sshl_f" |58
  
</div></div>
+
|- class="even"
----
+
| class="sshl_f" |EVEN(-23)
<div id="10SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">'''<font face="Times New Roman"> <font size="6">EVEN</font> </font>'''</div></div>
+
| class="sshl_f" |-24
----
 
<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"> '''EVEN''' ('''N''')
 
  
Where N is the value to be rounded
+
|- class="odd"
 +
| class="sshl_f" |EVEN(34.98989898)
 +
| class="sshl_f" |36
  
</font></font></div></div>
+
|- class="even"
----
+
| class="sshl_f" |EVEN(-3.25)
<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" face="Times New Roman"> </font>
+
| class="sshl_f" |-4
 +
 
 +
|- class="odd"
 +
| class="sshl_f" |EVEN(222)
 +
| class="sshl_f" |222
 +
|}
  
·        For a nonnumeric number, EVEN returns the error value.
+
==Related Videos==
  
·        Unless for an even integer, for all numbers, a value is rounded up when adjusted away from zero without considering its sign.
+
{{#ev:youtube|SFRTTUtAjg4|280|center|EVEN}}
  
</div></div>
+
== See Also ==
----
 
<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">
 
  
It is used to calculate the number rounded up to the nearest even integer
+
*[[Manuals/calci/ISEVEN | ISEVEN]]
  
</div></div>
+
*[[Manuals/calci/ODD | ODD]]
----
 
<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)
+
*[[Manuals/calci/TRUNC | TRUNC]]
  
EVEN (N)
+
*[[Manuals/calci/INT | INT]]
 +
 
 +
*[[Manuals/calci/CEILING | CEILING]]
 +
 
 +
*[[Manuals/calci/FLOOR | FLOOR]]
 +
 
 +
==References==
 +
 
 +
*[http://en.wikipedia.org/wiki/Even_and_odd_functions EVEN Function]
 +
*[http://simple.wikipedia.org/wiki/Even_number EVEN Number]
  
EVEN (C1R1)''''''
 
  
That is EVEN (5) is 6
 
  
</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="sshl_f " | 5
 
| class="sshl_f" | 6
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|- class="even"
 
| class="  " | Row2
 
| class="sshl_f" |
 
| 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="odd"
 
| Row3
 
| class="sshl_f" |
 
| 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 15:00, 11 January 2019

EVEN(Number)


  • where is the input number.
    • EVEN() rounds the number to the nearest even integer away from zero.

Description

EVEN(number)

EVEN(51) returns 52

  • For a non-numeric , Calci returns an #NULL error message.
  • The is rounded up away from zero to its nearest even integer, irrespective of its sign.
  • EVEN() can be used with array of numbers as -

In ZOS:

  • EVEN(1..10) or
  • 1..10@EVEN

In Calci:

  • =EVEN(1..10) or
  • =1..10@EVEN
Numbers EVEN
1 2
2 2
3 4
4 4
5 6
6 6
7 8
8 8
9 10
10 10

Examples

Function Output
EVEN(57) 58
EVEN(-23) -24
EVEN(34.98989898) 36
EVEN(-3.25) -4
EVEN(222) 222

Related Videos

EVEN

See Also

References