If you want a whole number, use round(number), such as round(global('dist') / 5)
http://sourceforge.net/apps/mediawiki/c ... xpressions has some helpful stuff on it.
Also, when doing something like: System: Set global variable to...
in that window, you should be able to double-click on the system object, and it'll give you a list of system expressions you can use.
Also of note is the expression: distance(x1,y1,x2,y2)
You can go: distance(sprite1.x,sprite1.y,sprite2.x,sprite2.y)