Absolute Value?

Game Editor comments and discussion.

Absolute Value?

Postby tlah » Thu Dec 09, 2010 1:56 am

Quick question: not of high importance, but is it possible to calculate an absolute value of a variable or equation? I got an error when putting the absolute value lines | | around a set of parentheses, containing a formula. Any thoughts?
-Tlah
User avatar
tlah
 
Posts: 66
Joined: Sun Apr 06, 2008 12:10 pm
Location: In your head, readin' ur mind
Score: 2 Give a positive score

Re: Absolute Value?

Postby skydereign » Thu Dec 09, 2010 2:04 am

Use abs(). You can always check this to see if there is a function.
http://game-editor.com/docs/script_reference.htm
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Absolute Value?

Postby tlah » Sun Dec 12, 2010 1:39 pm

Once again, you have come to my rescue! lol :lol:
I'd offer to help you with something, but I'm afraid that you know way more than I do...
Thanks again! :D
User avatar
tlah
 
Posts: 66
Joined: Sun Apr 06, 2008 12:10 pm
Location: In your head, readin' ur mind
Score: 2 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest