Thread: int is useless
View Single Post
  #3  
Old 01-26-2009, 05:07 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by Tyhm View Post
int (-1.5) returns -2, not -1.

This is, understandably, brutally murdering all my attempts to script.
int() rounds decimals down, and thus -1.5 becomes -2 in the same way 1.5 would become 1. If it bothers you that much, you can always abs() it prior do the int().
__________________
Follow my work on social media post-Graal:Updated august 2025.

Last edited by xXziroXx; 01-26-2009 at 06:13 PM..
Reply With Quote