UInt128.Sign(UInt128) Método

Definición

Calcula el signo de un valor.

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

Parámetros

value
UInt128

Valor cuyo signo se va a calcular.

Devoluciones

Valor positivo si value es positivo, Zero si value 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