Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info
titleAvailability

This routine is available starting with katl-commons SIL Engine™ 2.5.

Syntax

abs(number)

Description

...

Excerpt

Returns the absolute value of a number. The absolute value of a number is the number without its sign.


Parameters

ParameterTypeRequiredDescription
numberNumberYesNumber to get the absolute value for.

Return type

number

Example

Code Block
number a = abs(4); 
number b = abs(-4);
print("a= " + a);
print("b= " + b);

...