Difference between revisions of "Manuals/calci/ODD"

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="2SpaceContent" align="left"><div class="ZEditBox" align=...")
 
 
(13 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">'''ODD(Number)'''</div><br/>
  
Syntax
+
*where <math>Number</math> is the input number.
 +
**ODD(), rounds a number up to the nearest odd integer.
  
</div></div>
+
== Description ==
----
+
ODD(Number)
<div id="2SpaceContent" align="left"><div class="ZEditBox" align="justify">
 
  
Examples
+
ODD(76) ''returns 77''
  
</div></div>
+
*For a non-numeric <math>Number</math>, Calci returns an #NULL error message.
----
 
<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>
+
*The <math>Number</math> is rounded up away from zero to its nearest odd integer, irrespective of its sign.
 +
*ODD() can be used with array of numbers as -
 +
In ZOS:
 +
*ODD(1..10) or
 +
*1..10@ODD
 +
In Calci:
 +
*=ODD(1..10) or
 +
*=1..10@ODD
  
</div></div>
+
{| class="wikitable"
----
+
|-
<div id="10SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">'''<font face="Times New Roman"> <font size="6">ODD</font> </font>'''</div></div>
+
! Numbers !! ODD  
----
+
|-
<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>
+
| 1 || 1
 
+
|-
'''ODD''' ('''N''')
+
| 2 || 3
 
+
|-
'''Where N '''is the number to be round.
+
| 3 || 3
 
+
|-
</div></div>
+
| 4 || 5
----
+
|-
<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 calculates the number rounded up to the nearest odd integer.</div></div>
+
| 5 || 5
----
+
|-
<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">
+
| 6 || 7
 
+
|-
<font size="3"><font face="Times New Roman">Lets see an example in (Column1 Row 1)</font></font>
+
| 7 || 7
 
+
|-
<font size="3">ODD (N)</font>
+
| 8 || 9
 
+
|-
<font size="3">ODD (C1R1)</font>
+
| 9 || 9
 +
|-
 +
| 10 || 11
 +
|}
  
<font size="3">i.e. =ODD (5.2) is 7</font>
+
== 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'''
<div id="6Space_Copy" title="Click and Drag over to AutoFill other cells."></div>
+
| class="  " | '''Output'''
| Column1
+
 
| class="  " | Column2
 
| class="  " | Column3
 
| class="  " | Column4
 
 
|- class="odd"
 
|- class="odd"
| class=" " | Row1
+
| class="sshl_f" |ODD(98)
| class="sshl_f " | 5.2
+
| class="sshl_f" |99
| class="sshl_f" | 7
+
 
| class="sshl_f" |
 
| class="sshl_f" |
 
 
|- class="even"
 
|- class="even"
| class="  " | Row2
+
| class="sshl_f" |ODD(-23)
| class="sshl_f" |
+
| class="sshl_f" |-23
| 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"
 
|- class="odd"
| Row3
+
| class="sshl_f" |ODD(34.98989898)
| class="sshl_f" |
+
| class="sshl_f" |35
| class="sshl_f" |
+
 
| class="sshl_f" |
 
| class="sshl_f" |
 
 
|- class="even"
 
|- class="even"
| Row4
+
| class="sshl_f" |ODD(-5.2)
| class="sshl_f" |
+
| class="sshl_f" |-7
| class="sshl_f" |
+
 
| class="sshl_f" |
 
| class="sshl_f" |
 
 
|- class="odd"
 
|- class="odd"
| class=" " | Row5
+
| class="sshl_f" |ODD(666)
| class="sshl_f" |
+
| class="sshl_f" |667
| 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>
+
==Related Videos==
----
+
 
</div></div></div></div></div></div></div></div></div>
+
{{#ev:youtube|SFRTTUtAjg4|280|center|ODD}}
 +
 
 +
== See Also ==
 +
 
 +
*[[Manuals/calci/ISODD | ISODD]]
 +
 
 +
*[[Manuals/calci/EVEN | EVEN]]
 +
 
 +
*[[Manuals/calci/TRUNC | TRUNC]]
 +
 
 +
*[[Manuals/calci/INT | INT]]
 +
 
 +
*[[Manuals/calci/CEILING | CEILING]]
 +
 
 +
*[[Manuals/calci/FLOOR | FLOOR]]
 +
 
 +
==References==
 +
 
 +
*[http://en.wikipedia.org/wiki/Even_and_odd_functions ODD Function]
 +
 
 +
 
 +
 
 +
 
 +
*[[Z_API_Functions | List of Main Z Functions]]
 +
 
 +
*[[ Z3 |  Z3 home ]]

Latest revision as of 16:07, 21 August 2018

ODD(Number)


  • where is the input number.
    • ODD(), rounds a number up to the nearest odd integer.

Description

ODD(Number)

ODD(76) returns 77

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

In ZOS:

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

In Calci:

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

Examples

Function Output
ODD(98) 99
ODD(-23) -23
ODD(34.98989898) 35
ODD(-5.2) -7
ODD(666) 667

Related Videos

ODD

See Also

References