I'm looking for the equivalent of Java's Float.intBitsToFloat(int)
in Swift.
I've tried:
let myInt: UInt32 = ...
let myFloat = Float(_bits: myInt)
but that gives me the compiler error, "cannot convert value of type 'UInt32' to expected argument type 'FPIEEE32'".
Is there an easy way to do this that I am missing?