Abs()

Category: Number

Syntax: Abs ( number )

Parameters:

numberAny expression that resolves to a numeric value.

Data type returned: Number, Time

Description:

Returns the absolute value of number; absolute value is always a positive number.

Examples:

Function

Results

Abs ( -92 )

Returns 92.

Abs ( Get ( CurrentPlatform ))

Returns 1 for MacOS and 2 for Windows.

Abs ( RetailPrice - WholeSalePrice )

Returns the difference between the two prices, regardless of which one is larger.

Abs ( 2:15:00 3:30:00 )

Returns 1:15:00.

Категории