How do you access this function (or something similar) in Construct?
Thanks.
Develop games in your browser. Powerful, performant & highly capable.
abs(n) works on numbers, either integer or float.
If you just need the positive value of a number, you could also do sign(n) * n
Also, if you happen to need to convert an int or string to a floating point number, there is float() for that.
http://sourceforge.net/apps/mediawiki/c ... xpressions
Lots of other system expressions are described in the wiki link above, if you haven't seen it.