Returns the sign of Val:
1.0ifVal > 0.00.0ifVal = 0.0-1.0ifVal < 0.0NaNifVal = NaN
Verse using statement |
using { /Verse.org/Verse } |
Sgn<public>(Val:float):float
Parameters
Sgn takes the following parameters:
| Name | Type | Description |
|---|---|---|
Val |
float |
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. |