PhantomScript v1.7 Reference - Copyright © 2006 P1 Systems Incorporated. All Rights Reserved.

Prev | Next | Users Guide | PhantomScript Reference | P1 Systems


Miscellaneous

AbsoluteValue

Syntax

AbsoluteValue <number>

Description

Return the AbsoluteValue of the specified number.

Parameters

<number>

A integer or floating point number.

Remarks

The absolute value of a number is its unsigned magnitude. For example, AbsoluteValue (-1) and AbsoluteValue 1 both return 1.

Example

   x = -1 * 2.45
y = AbsoluteValue x

The example sets the variable x to -2.45 and y to 2.45.



Prev | Next | Users Guide | PhantomScript Reference | P1 Systems

PhantomScript v1.7 Reference - Copyright © 2006 P1 Systems Incorporated. All Rights Reserved.