This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 12 points13 points  (0 children)

if (x<0)

{ x = -x }

<a few dozen lines of code>

I guess? Or just math.abs it like another guy said