<< NL_S_Bin2Dec NL_S: Security NL_S_GCD >>

NARVAL >> NL_S: Security > NL_S_Dec2Bin

NL_S_Dec2Bin

Convert decimal number to a binary number sequence.

Calling Sequence

[B] = NL_S_Dec2Bin(D,N)

Arguments

D :

Value.

N :

Numbers of bits.

B :

Binary sequence.

Description

NL_S_Dec2Bin convert a decimal number D to the corresponding binary sequence number B=[0 1 1 ...]. N provides the number of bits.

Examples

de=100;
biNum=8;//number of bits
[bi]=NL_S_Dec2Bin(de,biNum)//application of NL_S_Dec2Bin
//|128|64|42|16|8|4|2|1| -> 0:255

Report an issue
<< NL_S_Bin2Dec NL_S: Security NL_S_GCD >>