Difference between revisions of "Manuals/calci/DEC2HEX"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "<div id="6SpaceContent" class="zcontent" align="left"> <font color="#000000"><font face="Arial, sans-serif"><font size="2">'''DEC2HEX'''</font></font><font face="Arial, san...")
 
Line 1: Line 1:
<div id="6SpaceContent" class="zcontent" align="left">
+
=DEC2HEX(number, places)=
  
<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>
+
*Where 'number' is the decimal integer to be converted and
 +
*'places' is the number of characters to be used to display the output.
  
<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>
+
DEC2HEX() converts a decimal number to its hexadecimal equivalent.
  
</div>
+
*If the number is nonnumeric or negative, Calci returns an #ERROR value.
----
+
*If 'places' is non-numeric or negative, Calci returns an #ERROR value.
<div id="7SpaceContent" class="zcontent" align="left">
 
 
 
* <font color="#000000"><font face="Arial, sans-serif"><font size="2">DEC2HEX returns NAN(error) value, whenever the number is nonnumeric or negative. </font></font></font>
 
* <font color="#000000"><font face="Arial, sans-serif"><font size="2">Places should be numeric and positive. Otherwise it shows the error values.</font></font></font>
 
  
 
</div>
 
</div>
Line 16: Line 13:
 
<div id="12SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="left">
 
<div id="12SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="left">
  
DEC2HEX
+
 
  
 
</div></div>
 
</div></div>

Revision as of 16:53, 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.

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



Lets see an example,

DEC2HEX(num, p)

=DEC2HEX(50, 5) is 32

=DEC2HEX(35) is 23


Syntax

Remarks

Examples

Description

DEC2HEX(num, p)

Where 'num' is the decimal integer to convert and 'p' is the number of characters to use.


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