Quantcast
Viewing latest article 13
Browse Latest Browse All 90

Answer by Noise crime

Normally you'd use a cast to convert between a float and int. So you'd define your variable as a float, but when you need the value as an int youd cast it e.g. x = 5 + (int)myFloat;

There are other methods depending upon your needs to manage the conversions, such as ceiling() or floor(),


Viewing latest article 13
Browse Latest Browse All 90

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>