Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Warning

Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8 for Server/Data Center? Click here !

Info
titleAvailability

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

Syntax

...

sign(number)


Description

...


Excerpt

Determines the sign of a number (signum).

Returns 1 if the number is positive, zero (0) if the number is 0, and -1 if the number is negative.



Parameters

...

ParameterTypeRequiredDescription
numberNumberYesAny real number.

Return type

...

number


Example

...

Code Block
number a = sign(3);
print("a= " + a);
number b = sign(-4);
print("b= " + b);
number c = sign(3-3);
print("b= " + c);

...

        b= -1;

        c= 0;

 

See Also:

 

...

See also

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "math_routines"
labelsmath_routines