I had to resort to brute-forcing the solution, according to the IEEE754 specifications.
func bin2float(pkt:PoolByteArray) -> float:
#Convert packet to an array of bools
var arr:Array=[]
for byte in pkt:
for _i in range(0,8):
arr.append(byte%2)
byte/=2
#Extract sign
var r_sign:int
if arr[31]==1:
r_sign=-1
else:
r_sign=1
#Extract exponent
var r_exp:int=0
for i in range(30,22,-1):
r_exp*=2
r_exp+=arr[i]
r_exp-=127
#Extract mantissa
var r_mant:float=0
for i in range(0,23):
r_mant+=arr[i]
r_mant/=2
r_mant+=1
return r_sign*pow(2,r_exp)*r_mant
Of course this is terribly slow, and a real native solution would still be greatly appreciated, but this works in the meantime.