Convert Float to Int

Hello,

how to convert a Float to an Int ?

Thanks

You can use Std.int, Math.ceil, Math.round or Math.floor, to name a few :smile:

http://api.openfl.org/Std.html
http://api.openfl.org/Math.html