Returns the sign of Val:
1ifVal > 00ifVal = 0-1ifVal < 0
Verse using statement |
using { /Verse.org/Verse } |
Sgn<public>(Val:int):int
Parameters
Sgn takes the following parameters:
| Name | Type | Description |
|---|---|---|
Val |
int |
Attributes, Specifiers, and Effects
Specifiers
The following specifiers determine how you can interact with Sgn in your programs. For the complete list of specifiers, see the Specifiers Page.
| Specifier | Meaning |
|---|---|
public |
The identifier is universally accessible. You can use this on modules, classes, interfaces, structs, enums, methods, and data. |