...
...
Info | ||
---|---|---|
| ||
This routine is available starting with katl-commons SIL Engine™ 2.5. |
Syntax
sign(number)
Description
...
Returns 1 if the number is positive, zero (0) if the number is 0, and -1 if the number is negative.
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
number | Number | Yes | Any 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
Filter by label (Content by label) | ||||||||
---|---|---|---|---|---|---|---|---|
|
...