Difference between revisions of "Manuals/calci/DEC2HEX"

From ZCubes Wiki
Jump to navigation Jump to search
Line 5: Line 5:
  
 
DEC2HEX() converts a decimal number to its hexadecimal equivalent.
 
DEC2HEX() converts a decimal number to its hexadecimal equivalent.
 +
 +
== Description ==
 +
 +
DEC2HEX(number, places)
  
 
*If the number is nonnumeric or negative, Calci returns an #ERROR value.
 
*If the number is nonnumeric or negative, Calci returns an #ERROR value.
 
*If 'places' is non-numeric or negative, Calci returns an #ERROR value.
 
*If 'places' is non-numeric or negative, Calci returns an #ERROR value.
  
</div>
+
For Example,
----
 
<div id="12SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="left">
 
 
 
 
 
 
 
</div></div>
 
----
 
<div id="8SpaceContent" class="zcontent" align="left">
 
 
 
<font color="#000000"><font face="Arial, sans-serif"><font size="2">Lets see an example,</font></font></font>
 
 
 
<font color="#000000"><font face="Arial, sans-serif"><font size="2">DEC2HEX(num, p)</font></font></font>
 
 
 
<font color="#000000"><font face="Arial, sans-serif"><font size="2"><nowiki>=DEC2HEX(50, 5) is 32</nowiki></font></font></font>
 
 
 
<font color="#000000"><nowiki>=DEC2HEX(35) is 23</nowiki></font>
 
  
</div>
+
DEC2HEX(50, 5) ''returns 32''
----
 
<div id="10SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Syntax </div><div class="ZEditBox"><center></center></div></div>
 
----
 
<div id="4SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Remarks </div></div>
 
----
 
<div id="3SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Examples </div></div>
 
----
 
<div id="11SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Description </div></div>
 
----
 
<div id="5SpaceContent" class="zcontent" align="left">
 
  
<font color="#000000"><font face="Arial, sans-serif"><font size="2">'''DEC2HEX'''</font></font><font face="Arial, sans-serif"><font size="2">(</font></font><font face="Arial, sans-serif"><font size="2">'''num'''</font></font><font face="Arial, sans-serif"><font size="2">, p)</font></font></font>
+
DEC2HEX(35) ''returns 23''
  
<font color="#000000"><font face="Arial, sans-serif"><font size="2">Where 'num' is the decimal integer to convert and 'p' is the number of characters to use. </font></font></font>
+
== Examples ==
  
</div>
 
----
 
 
<div id="1SpaceContent" class="zcontent" align="left">
 
<div id="1SpaceContent" class="zcontent" align="left">
  

Revision as of 15:57, 16 November 2013

DEC2HEX(number, places)

  • Where 'number' is the decimal integer to be converted and
  • 'places' is the number of characters to be used to display the output.

DEC2HEX() converts a decimal number to its hexadecimal equivalent.

Description

DEC2HEX(number, places)

  • If the number is nonnumeric or negative, Calci returns an #ERROR value.
  • If 'places' is non-numeric or negative, Calci returns an #ERROR value.

For Example,

DEC2HEX(50, 5) returns 32

DEC2HEX(35) returns 23

Examples

Column1 Column2 Column3 Column4
Row1 32 23
Row2
Row3
Row4
Row5
Row6