In VB6 I am using
Private Type udt1
i As Long
End Type
Private Type udt2
f As Single
End Type
Private Function IntBitsToFloat(ByVal u As Long) As Double
Dim n1 As udt1
n1.i = u
Dim n2 As udt2
LSet n2 = n1
IntBitsToFloat = n2.f
End Function
I am trying to find the equivalent in VB.NET but I did not find any.
Does anybody know it? Thank you.