Jump to content

Home

FloatToInt - How exactly does this little number work?


Pavlos

Recommended Posts

OK... so I have used FloatToInt() several times in my scripts but I was just wondering about the mechanics of it (I don't know whether "mechanics" is the correct term to use here but, meh!)

 

Seeing as how a Float can be a decimalised number (An example being "GetFacing()") and an Integer has to be... an integer (Surprisingly) I want to know how this actually works out. Is the value rounded to the nearest whole number? Just thinking about this had me scratching my head, so I was wondering if someone who understands the internal workings of the game better than myself could explain it to me.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...