Returns the sign of `s`: `-1` or `1`. Returns `0` if `s` is `0`.
Namespace:
Godot
Assembly:
GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax public static int Sign(
int s
)
Parameters
- s
- Type: SystemInt32
The input number.
Return Value
Type:
Int32One of three possible values: `1`, `-1`, or `0`.
See Also