Difference between revisions of "Manuals/calci/INT"

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=...")
 
 
(22 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<div id="16SpaceContent" align="left"><div class="ZEditBox" align="justify">
+
<div style="font-size:30px">'''INT(Number)'''</div><br/>
 +
*<math>Number</math> is any real number.
 +
**INT() rounds a number down to the nearest integer.
  
Syntax
+
== Description ==
  
</div></div>
+
*This function gives number without any decimal part.
----
+
*The function INT(Number) is rounding the given number to down to the nearest number.
<div id="2SpaceContent" align="left"><div class="ZEditBox" align="justify">
+
*Integer is the number without any decimal or fractional part but it can be the natural number with positive or negative sign. i.e.,INTEGER={….-3,-2,-1,0,1,2,3...}
 +
*So integers are countably infinite set.
 +
*In <math>INT(Number)</math>, where <math> Number </math> is any real number.Also <math> Number </math> can be any operations with the real numbers.
 +
*For e.g.,INT(2.3*4.7)
 +
*This function will give result as error when  <math> Number </math> is non numeric.
  
Examples
+
==ZOS==
 +
*The syntax is to calculate INT function in ZOS is <math>INT(Number)</math>.
 +
**<math>Number</math> is any real number.
 +
*For e.g.,INT(-10.5),INT((-19.25*11.21)/4)
 +
{{#ev:youtube|EVF31NEtqCM|280|center|Integer}}
  
</div></div>
+
==Examples==
----
+
#INT(10.99)=10
<div id="8SpaceContent" align="left"><div class="ZEditBox" align="justify">'''<font face="Times New Roman">''''''''''''<font size="6"> </font>''' '''''''''</font>'''</div></div>
+
#INT(-10.99)=-11
----
+
#INT(0.05)=0,INT(-0.05)=-1
<div id="11SpaceContent" align="left"><div class="ZEditBox mceEditable" align="justify">
+
#INT(4.56+7.21)=11
 +
#INT(10.78-9.45)=1
 +
#INT(12.76*12.76)=162
 +
#INT(49.54/20.4)=2
 +
#20.76-INT(19.45)=1.7600000000000016
  
<font size="5">Description</font>
+
==Related Videos==
  
</div></div>
+
{{#ev:youtube|1XLjvkL2VZA|280|center|INT Function}}
----
 
<div id="10SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">'''<font face="Times New Roman"> <font size="6">INT</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"> 
 
  
'''INT'''('''num''')
+
== See Also ==
  
'''Where num''' is the real number
+
*[[Manuals/calci/TRUNC| TRUNC]]
  
</font></font><font size="3"><font face="Times New Roman">.</font></font></div></div>
+
*[[Manuals/calci/ROUND | ROUND]]
----
 
<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"> INT rounds a particular number down to the nearest integer.</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"> 
 
  
Lets see an example in (Column1, Row 1)
+
*[[Manuals/calci/ROUNDUP | ROUNDUP]]
  
INT (R)
+
*[[Manuals/calci/ROUNDDOWN | ROUNDDOWN]]
  
INT (C1R1)''''''
+
*[[Manuals/calci/CEILING | CEILING]]
  
That is INT (3.6) is 3
+
*[[Manuals/calci/FLOOR | FLOOR]]
  
</font></font></div></div>
+
==References==
----
 
<div id="6SpaceContent" class="zcontent" align="left">
 
  
{| id="TABLE3" class="SpreadSheet blue"
+
*[http://en.wikipedia.org/wiki/Integer Integer]
|- class="even"
+
*[http://en.wikipedia.org/wiki/Rounding#Tie-breaking Rounding]
| 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" | 3.6
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|- class="even"
 
| class="  " | Row2
 
| class="sshl_f" | 3
 
| 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>
+
 
----
+
 
</div></div></div></div></div></div></div></div></div>
+
*[[Z_API_Functions | List of Main Z Functions]]
 +
 
 +
*[[ Z3 |  Z3 home ]]

Latest revision as of 04:29, 8 June 2020

INT(Number)


  • is any real number.
    • INT() rounds a number down to the nearest integer.

Description

  • This function gives number without any decimal part.
  • The function INT(Number) is rounding the given number to down to the nearest number.
  • Integer is the number without any decimal or fractional part but it can be the natural number with positive or negative sign. i.e.,INTEGER={….-3,-2,-1,0,1,2,3...}
  • So integers are countably infinite set.
  • In , where is any real number.Also can be any operations with the real numbers.
  • For e.g.,INT(2.3*4.7)
  • This function will give result as error when is non numeric.

ZOS

  • The syntax is to calculate INT function in ZOS is .
    • is any real number.
  • For e.g.,INT(-10.5),INT((-19.25*11.21)/4)
Integer

Examples

  1. INT(10.99)=10
  2. INT(-10.99)=-11
  3. INT(0.05)=0,INT(-0.05)=-1
  4. INT(4.56+7.21)=11
  5. INT(10.78-9.45)=1
  6. INT(12.76*12.76)=162
  7. INT(49.54/20.4)=2
  8. 20.76-INT(19.45)=1.7600000000000016

Related Videos

INT Function

See Also

References