Difference between revisions of "Manuals/calci/N"

From ZCubes Wiki
Jump to navigation Jump to search
Line 28: Line 28:
  
 
==References==
 
==References==
Examples
 
 
</div></div>
 
----
 
<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>
 
 
</div></div>
 
----
 
<div id="5SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"> 
 
 
<font color="#484848"><font face="Arial, sans-serif"><font size="2">This function gives a value converted to a number.</font></font></font>
 
 
</div></div>
 
----
 
<div id="10SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"><font size="6">N</font></div></div>
 
----
 
<div id="6SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"> <font color="#484848"><font face="Arial, sans-serif"><font size="2">'''N'''</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">(</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">'''V'''</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">)</font></font></font>
 
 
<font color="#484848"><font face="Arial, sans-serif"><font size="2">where V</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">   is the value which is to be converted. </font></font></font>
 
 
</div></div>
 
----
 
<div id="1SpaceContent" class="zcontent" align="left">
 
 
{| id="TABLE3" class="SpreadSheet blue"
 
|- class="even"
 
| class=" " |
 
| Column1
 
| Column2
 
| Column3
 
| Column4
 
|- class="odd"
 
| class=" " | Row1
 
| class="sshl_f " | 20
 
| class="sshl_f" | 20
 
| class="sshl_f " | word
 
| class="sshl_f" | 0
 
|- class="even"
 
| class="  " | Row2
 
| class="sshl_f " | 10/31/2008
 
| class="sshl_f" | Fri Oct 31 00:00:00 UTC+0530 2008
 
| class="                                    " |
 
| class="  sshl_f " |
 
|- class="odd"
 
| Row3
 
| class="                                                                                                        " |
 
| class=" " |
 
| class=" sshl_f SelectTD" |
 
<div id="1Space_Handle" title="Click and Drag to resize CALCI Column/Row/Cell. It is EZ!"></div><div id="1Space_Copy" title="Click and Drag over to AutoFill other cells."></div>
 
| class=" sshl_f" |
 
|- class="even"
 
| Row4
 
| class="  " |
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
|- class="odd"
 
| class=" " | Row5
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
|- class="even"
 
| Row6
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
|}
 
 
<div align="left">[[Image:calci1.gif]]</div></div>
 
----
 
<div id="4SpaceContent" class="zcontent" align="left"> 
 
 
<font color="#484848"><font face="Arial, sans-serif"><font size="2">Let's see an example in Column1Row1</font></font></font>
 
 
<font color="#484848"><font face="Arial, sans-serif"><font size="2">Let B2 = 20,</font></font></font>
 
 
<font color="#484848"><font face="Arial, sans-serif"><font size="2">I.e.=N(B2) is 20</font></font></font>
 
 
<font color="#484848"><font face="Arial, sans-serif"><font size="2">Let D2 = word</font></font></font>
 
 
<font color="#484848"><font face="Arial, sans-serif"><font size="2">I.e.=N(D2) is 0</font></font></font>
 
 
<font color="#666666"><font face="Arial, sans-serif"><font size="2">Let B3 = 10/31/2008</font></font></font>
 
 
<font color="#666666"><font face="Arial, sans-serif"><font size="2">I.e.=N(B3) is Fri Oct 31 00:00:00 UTC+0530 2008</font></font></font>
 
 
<br />
 
 
<br />
 
 
</div>
 
----
 

Revision as of 02:19, 1 January 2014

N(x)


  • is the value.


Description

  • This functon gives converted value of a number.
  • In is the value to convert in to a number.
  • The following values are converted in to a number:

X value N returns(Result)

  1. A number - The Same number
  2. Any date in DATEfunction format- The Serial number of that date
  3. TRUE - 1
  4. FALSE - 0
  5. An error value - Error value
  6. Anything else - 0

Examples

  1. N(100)=100
  2. N(-154)=-154
  3. N(2/1/1987)=0.001006543
  4. N(TRUE)=1
  5. N(FALSE)=0
  6. N(2/0)=Infinity
  7. N("10/4")=0

See Also

References