Difference between revisions of "Abs"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>WereWolf
m
imported>DragoonWraith
(Just isn't the right place for this.)
 
(3 intermediate revisions by 2 users not shown)
Line 18: Line 18:
[[Category: Functions]]
[[Category: Functions]]
[[Category: Functions (OBSE)]]
[[Category: Functions (OBSE)]]
[[Category:OBSE_Functions]]
[[Category:Math_Functions]]
[[Category:OBSE_Math_Functions]]
[[Category:Math_Functions (OBSE)]]

Latest revision as of 21:19, 25 April 2010

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[edit | edit source]

set n to abs -54

n = 54

set n to abs 54

n = 54