I am trying to convert a floating point binary into a decimal number and i am struggling on how to split the mantissa up into two.
I have the following lines but not sure if it is correct:
Dim mantissaarray() As String = Split(mantissa,,T)
Dim first As Integer = CInt(mantissaarray(0))
Dim second As Integer = CInt(mantissaarray(1))
the third line is where there is an error
System.IndexOutOfRangeException: 'Index was outside the bounds of the array.'
Could someone tell me what i am doing wrong to get this error as i do not understand?
The mantissa is a string e.g 0110 and T is an integer e.g 2 Output to the array should be a split of the string by the third number e.g 01 and 10.