Casting an Int to a Float

To cast an Int to a Float:

This is useful if you’d like to generate a random float:

 

swiftfreak

 

Leave a Reply

Your email address will not be published. Required fields are marked *