Link to home
Start Free TrialLog in
Avatar of sayeth
sayeth

asked on

convent ByteArray To DecimalArray

hay to All
What is the fastest way to convent a ByteArray To DecimalArray
thanks
ASKER CERTIFIED SOLUTION
Avatar of GrahamSkan
GrahamSkan
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sayeth
sayeth

ASKER

Thanks.  Just one little error problem i had to fix, but your answer is right
Dim bb(10) As Byte
Dim dd() As Single
Dim i As Integer
   
    '...
    ReDim dd(UBound(bb))
    For i = 0 To UBound(bb)
        dd(i) = BitConverter.ToSingle(bb, 0)
    Next i
thank for the help. but one more question  on the same topic. i wrote a code that convert single array to bytes array - it work fine but i want a faster way because the single array is very large
i= 0
For lvI = 0 To UBound(dd)     'dd is very large
   bb(i)= BitConverter.GetBytes(dd(lvI))
    i+4
Next