I\'m looking for a robust and elegant way to extract four big-endian bytes from an array as a Float.
I can get a UInt32 with the bits via something like this:
The equivalent Swift code is
let flt = unsafeBitCast(bits, Float.self)
which gives 4.2 with your data.
4.2