d2b PowerHome formula function
Description
Converts decimal number into binary
string
Syntax
d2b( number, length )
Argument |
Description |
number |
Unsigned Long. The decimal number to be
converted. |
length
|
Integer. Specifies the desired
length of the binary string.
|
Return value
String. Returns the converted
binary string
Usage
Set the length parameter to 0 to have the
function return the significant digits of the conversion (no leading zeros).
Examples
The following examples demonstrate typical syntax/usage for this function.
d2b(3452,0)
The above example will return a string value of "110101111100".