Difference between revisions of "Abs"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>DewiMorgan
(→‎Notes: +note it's not in the TES4 wiki.)
imported>Ez0n3
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=='''Description'''==
{{Function
|origin = GECK1
|summary = When given a number, returns the absolute value of the number.
|name = Abs
|returnType = int
|arguments =
  {{FunctionArgument
  |Name = x
  |Type = int
  }}
|example = abs x
Will return the absolute value of x.
}}


'''Abs''' When given a number returns the absolute value of the number.
==Notes==
*[[Sin]], [[cos]], [[tan]], [[pow]], [[log]], and [[abs]] (particularly pow and log) are extremely slow. Do not use them in script blocks that get executed every frame.
*This function is new in the GECK, and was not available in the TES4 Construction Set. However, it was available through the OBSE script extender.


=='''Syntax'''==
==See Also==
 
*[[Cos]]
  abs x    ''will return the absolute value of x.''
*[[Log]]
 
*[[Pow]]
=='''Notes'''==
*[[Sin]]
*This function is new in the GECK, and was not available in the TES4 Construction Set.
*[[Tan]]
 
*Link to TES4 Construction Set Wiki: [http://cs.elderscrolls.com/constwiki/index.php/Abs Abs (OBSE function)]
=='''See Also'''==
[[Sin]], [[Cos]], [[Tan]], [[Log]] and [[Pow]]


[[Category:Functions]]
[[Category:Functions]]
[[Category:Functions (GECK 1.1)]]
[[Category:Math Functions]]
[[Category:Math Functions]]
[[Category:Math Functions (GECK 1.1)]]

Latest revision as of 00:29, 13 January 2011

< [[::Category:Functions|Category:Functions]]

A function included in the GECK version 1.1.0.36.

Description

When given a number, returns the absolute value of the number.

Syntax

[help]
(int) Abs x:int

Example

abs x

Will return the absolute value of x.

Notes

  • Sin, cos, tan, pow, log, and abs (particularly pow and log) are extremely slow. Do not use them in script blocks that get executed every frame.
  • This function is new in the GECK, and was not available in the TES4 Construction Set. However, it was available through the OBSE script extender.

See Also