abs()

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

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: support@zohodeluge.com