Background for Fallout 4
Member of the Math script
floatfunctionabs(floatafValue)NativeGlobal

Description

Wiki Description

Calculates the absolute value of the number it is given.

Documentation Comment

Calculates the absolute value of the passed in value - N for N, and N for (-N)


Caveats


Parameters

floatafValue

CK Wiki Description

The value to get the absolute value of.


Examples

float x = abs(5) ; x == 5
float y = abs(-5) ; y == 5

Auto-Generated Example

float myFloat__afValue

float returnedValue = Math.abs(myFloat__afValue)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.