The answer to this question might be obvious but it is escaping me.
I have a UInt16 how do I convert it to an Int, or Float, or Double in Swift 5. Sorry if this is obvious.
The answer to this question might be obvious but it is escaping me.
I have a UInt16 how do I convert it to an Int, or Float, or Double in Swift 5. Sorry if this is obvious.
Never mind I see what I was doing wrong here. I am embarrassed to say that I got tunnel vision and forgot while my variable was a UInt16 I had the variable set and Any for other reasons.