dec2bin( value, place )
Converts a Decimal number to a Binary number as text.
Keyword | Type | Description |
---|---|---|
|
Text |
Decimal value to convert, such as 123. |
|
Number |
The number of places to return. |
Text
Negative number values for value are handled using the 2's complement method.
The default value for place is however many places are necessary to represent the number.
dec2bin(16)
returns 10000