Pavlos
05-05-2006, 01:08 PM
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.
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.