Talk:Abs

From the Oblivion ConstructionSet Wiki
Revision as of 19:56, 25 April 2010 by imported>Moses (Added formula that can be used in place of this function for people who don't have OBSE and dont want to use it.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

I was thinking that it's kinda sad that Oblivion doesn't have a simple math function like this natively. I've thrown together a small equation I use for finding absolute value in place of abs when I'm not using OBSE. A = a * ((a > 0) + ((a < 0) * -1))

--Moses 20:56, 25 April 2010 (EDT)