Difference between revisions of "Abs"
Jump to navigation
Jump to search
imported>DewiMorgan m (→Notes: noting that although new, it existed as an OBSE fn) |
imported>DewiMorgan m (Adding note from cos; debolding headings.) |
||
Line 1: | Line 1: | ||
== | ==Description== | ||
'''Abs''' When given a number returns the absolute value of the number. | '''Abs''' When given a number returns the absolute value of the number. | ||
== | ==Syntax== | ||
abs x ''will return the absolute value of x.'' | 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 program. | *This function is new in the GECK, and was not available in the TES4 Construction Set. however, it was available through the OBSE program. | ||
== | ==See Also== | ||
*[[Sin]] | *[[Sin]] | ||
*[[Cos]] | *[[Cos]] |
Revision as of 12:08, 13 April 2009
Description
Abs When given a number returns the absolute value of the number.
Syntax
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 program.