Hi!
Ich bekomme einen IEEE 754 (float) value in einem byte[4].
Das ganze bekomme ich unproblematisch in einen UInt32, die binäre Codierung stimmt hier noch.
Doch wie bekomme ich das in einem float konvertiert? Ein Cast tuts nicht..
In C würde ich jetzt einen float* auf die Adresse und schon hätte ich den UInt32 als float interpretiert. Doch wie bekomme ich das in CSharp hin?
google hat die seite hier ausgespuckt =)
http://www.thescripts.com/forum/thread224385.html
> but how do I Convert this Byte array back into float?:::
Try BitConverter.ToSingle()
This is a single precision IEEE-754 floating point number (a float in other
words)Oscar.
Früher war ich unentschlossen, heute bin ich mir da nicht mehr so sicher...