Difference between revisions of "Abs"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>DragoonWraith
(don't include articles in the Math category, only the Math (OBSE) category)
imported>WereWolf
m
Line 18: Line 18:
[[Category: Functions]]
[[Category: Functions]]
[[Category: Functions (OBSE)]]
[[Category: Functions (OBSE)]]
[[Category: Math Functions (OBSE)]]
[[Category:OBSE_Math_Functions]]

Revision as of 09:15, 9 September 2007

A command for Oblivion Script Extender

Syntax:

abs [float]

Returns the absolute value of a number, i.e. it's distance from zero, i.e. always positive

Example

set n to abs -54

n = 54

set n to abs 54

n = 54