<< NL_S_AESSubBytesR NL_S: Security NL_S_Dec2Bin >>

NARVAL >> NL_S: Security > NL_S_Bin2Dec

NL_S_Bin2Dec

Convert binary number sequence to decimal number.

Calling Sequence

[D] = NL_S_Bin2Dec(B)

Arguments

B :

Vector (0 or 1).

D :

Decimal value.

Description

NL_S_Bin2Dec convert a binary number sequence B=[0 1 1 ...] to the corresponding decimal number D.

Examples

bi=[1 0 1 0 1 0 1 0 1 1];//binary sequence
[de]=NL_S_Bin2Dec(bi)//application of NL_S_Bin2Dec

Report an issue
<< NL_S_AESSubBytesR NL_S: Security NL_S_Dec2Bin >>