Click or drag to resize

MathfSign Method (Int32)

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
C#
public static int Sign(
	int s
)

Parameters

s
Type: SystemInt32
The input number.

Return Value

Type: Int32
One of three possible values: `1`, `-1`, or `0`.
See Also