Choose where you’d like to start

abs()

Overview

The abs() function takes a number as an argument, and returns the absolute value of that number, i.e., the number without a sign.

Return Type

  • Decimal

Syntax

<variable> = <number>.abs();

(OR)

<variable> = abs(<number> );
ParameterDescriptionData type
<variable>Variable which will contain the returned value.DECIMAL
<number>The number whose absolute value will be returned.NUMBER or DECIMAL

Examples

number= -15.50;
absValue = number.abs();        // returns 15.50

Get Started Now

Execute