| Line 1: |
Line 1: |
| − | <div id="16SpaceContent" align="left"><div class="ZEditBox" align="justify">
| + | =INT(number)= |
| | | | |
| − | Syntax
| + | *Where number is a number to be rounded. |
| | | | |
| − | </div></div>
| + | INT() rounds a number down to the nearest integer. |
| − | ----
| |
| − | <div id="2SpaceContent" align="left"><div class="ZEditBox" align="justify">
| |
| | | | |
| − | Examples
| + | == Description == |
| | | | |
| − | </div></div>
| + | INT(number) |
| − | ----
| |
| − | <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>
| + | INT(3.6) is 3 |
| | | | |
| − | </div></div>
| + | *TRUNC() and INT() functions are somewhat similar. TRUNC() removes the fractional part of the number, where as INT() rounds the number down to nearest integer. |
| − | ----
| + | *INT() and TRUNC() work differently with negative numbers. |
| − | <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''') | + | INT(-45.1) ''returns -45'' whereas |
| | + | |
| | + | TRUNC(-45.1) ''returns -46'' |
| | | | |
| − | '''Where num''' is the real number
| + | *If the input is non-numeric, Calci displays an error message. |
| | | | |
| − | </font></font><font size="3"><font face="Times New Roman">.</font></font></div></div>
| + | == Examples == |
| − | ----
| |
| − | <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)
| |
| − |
| |
| − | INT (R)
| |
| − |
| |
| − | INT (C1R1)''''''
| |
| − |
| |
| − | That is INT (3.6) is 3
| |
| − |
| |
| − | </font></font></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" |INT(1000.34) |
| − | | class="sshl_f" | 3.6 | + | | class="sshl_f" |1000 |
| − | | class="sshl_f" |
| + | |
| − | | class="sshl_f" | | |
| − | | class="sshl_f" |
| |
| | |- class="even" | | |- class="even" |
| − | | class=" " | Row2
| + | | class="sshl_f" |INT(23.4546) |
| − | | class="sshl_f" | 3
| + | | 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" |INT(-3.25) |
| − | | class="sshl_f" | | + | | class="sshl_f" |-4 |
| − | | 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="odd" |
| − | | class=" " | Row5
| + | | class="sshl_f" |INT(-0.222) |
| − | | class="sshl_f" |
| + | | class="sshl_f" |-1 |
| − | | 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>
| + | == See Also == |
| − | ----
| + | |
| − | </div></div></div></div></div></div></div></div></div>
| + | *[[Manuals/calci/TRUNC| TRUNC]] |
| | + | |
| | + | *[[Manuals/calci/ROUND | ROUND]] |
| | + | |
| | + | *[[Manuals/calci/ROUNDUP | ROUNDUP]] |
| | + | |
| | + | *[[Manuals/calci/ROUNDDOWN | ROUNDDOWN]] |
| | + | |
| | + | *[[Manuals/calci/CEILING | CEILING]] |
| | + | |
| | + | *[[Manuals/calci/FLOOR | FLOOR]] |
| | + | |
| | + | ==References== |
| | + | |
| | + | *[http://en.wikipedia.org/wiki/Truncation TRUNC Function] |