Binary Operations - Library

Implementation for Heston stochastic volatility model. The model assumes that the volatility is stochastic and mean reverting.

Synoposis - Available functions

Description

bin_Bin2Dec  

Description : Performs binary to decimal conversion of a 32 bit binary number. The input number can range from -2^31 to 2^31.

Input parameters

Input variable Example Description
bin 101.1 The input binary number that has to be converted to decimal
bin_Dec2Bin  

Description : Performs decimal to binary conversion. The input number can range from -2^31 to 2^31.

Input parameters

Input variable Example Description
dec 23.5 The input decimal number that has to be converted to binary
precision 8 The decimal places for accuracy
bin_LeftShift  

Description : Performs left shift to required number of bits on the input decimal.

Input parameters

Input variable Example Description
xNum 23.5 The input decimal number that has to be left shifted
bits 8 The number of bits to be left shifted
bin_RightShift  

Description : Performs right shift to required number of bits on the input decimal.

Input parameters

Input variable Example Description
xNum 23.5 The input decimal number that has to be right shifted
bits 8 The number of bits to be right shifted
bin_bitXOR  

Description : Performs right shift to required number of bits on the input decimal.

Input parameters

Input variable Example Description
xNum1 23.5 The first decimal
xNum2 45.6 The second decimal
bin_bitOR  

Description : Performs bit by bit OR between the input numbers.

Input parameters

Input variable Example Description
xNum1 23.5 The first decimal
xNum2 45.6 The second decimal
bin_bitAnd  

Description : Performs bit by bit And between the input numbers.

Input parameters

Input variable Example Description
xNum1 23.5 The first decimal
xNum2 45.6 The second decimal
Requirements