Difference between revisions of "Manuals/calci/DEC2BIN"

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">DEC2BIN(num, p)</font></font></font> <font col...")
 
Line 1: Line 1:
<div id="6SpaceContent" class="zcontent" align="left">
+
=DEC2BIN(number, padding)=
  
<font color="#000000"><font face="Arial, sans-serif"><font size="2">DEC2BIN(num, p)</font></font></font>
+
*Where 'number' is the decimal integer to be converted and 'padding' is the number of characters 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>
+
*DEC2BIN() function converts a decimal number to its binary equivalent.
  
</div>
+
== Description ==
----
 
<div id="7SpaceContent" class="zcontent" align="left">
 
  
<font color="#000000"><font face="Arial, sans-serif"><font size="2">DEC2BIN returns the NAN(error) value, when number is negative or nonnumeric.</font></font></font>
+
DEC2BIN(number, padding)
  
<font color="#000000"><font face="Arial, sans-serif"><font size="2">DEC2BIN returns the NAN(error) value, whenever the places are nonnumeric, zero or negative.</font></font></font>
+
*DEC2BIN returns the NAN(error) value, when number is negative or nonnumeric.
  
</div>
+
*DEC2BIN returns the NAN(error) value, whenever the padding is nonnumeric, zero or negative.
----
 
<div id="12SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="left">
 
  
DEC2BIN
+
Lets see an example,
  
</div></div>
+
DEC2BIN(10, 5) is 1010
----
 
<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>
+
DEC2BIN(100) is 100100
 
 
<font color="#000000"><font face="Arial, sans-serif"><font size="2">DEC2BIN(num, p)</font></font></font>
 
 
 
<font color="#000000"><font face="Arial, sans-serif"><font size="2"><nowiki>=DEC2BIN(10, 5) is 1010</nowiki></font></font></font>
 
 
 
<font color="#000000"><nowiki>=DEC2BIN(100) is </nowiki><font face="Arial, sans-serif"><font size="2">1100100</font></font></font>
 
  
 
</div>
 
</div>

Revision as of 06:29, 14 November 2013

DEC2BIN(number, padding)

  • Where 'number' is the decimal integer to be converted and 'padding' is the number of characters to display the output.
  • DEC2BIN() function converts a decimal number to its binary equivalent.

Description

DEC2BIN(number, padding)

  • DEC2BIN returns the NAN(error) value, when number is negative or nonnumeric.
  • DEC2BIN returns the NAN(error) value, whenever the padding is nonnumeric, zero or negative.

Lets see an example,

DEC2BIN(10, 5) is 1010

DEC2BIN(100) is 100100


Syntax

Remarks

Examples

Description

This function converts a decimal number to binary number.


Column1 Column2 Column3 Column4
Row1 1010 1100100
Row2
Row3
Row4
Row5
Row6