Sub convert_db_bd
' convert to Bytes
Dim BC As ByteConverter
Dim dbl As Double = 12.3456789
Dim bytes() As Byte = BC.DoublesToBytes(Array As Double(dbl))
Log("dbl=",dbl)
Log("4 bytes: ", bytes(0),TAB,bytes(1),TAB,bytes(2),TAB,bytes(3))
' convert to Double
Log("- - - - - - - -")
Dim b(4) As Byte
Dim BC As ByteConverter
BC.ArrayCopy2(bytes, 0, b, 0, 4)
Dim d() As Double = BC.DoublesFromBytes(b)
Log("d():",d(0))
End Sub