UInt64.Sign(UInt64) Método

Definición

Calcula el signo de un valor.

public:
 static int Sign(System::UInt64 value) = System::Numerics::INumber<System::UInt64>::Sign;
public static int Sign (ulong value);
static member Sign : uint64 -> int
Public Shared Function Sign (value As ULong) As Integer

Parámetros

value
UInt64

Valor cuyo signo se va a calcular.

Devoluciones

Valor positivo si es positivo, Zero si valuevalue es cero y un valor negativo si value es negativo.

Implementaciones

Comentarios

Se recomienda que una función devuelva 1, 0y -1, respectivamente.

Se aplica a