Partilhar via


UIntPtr.Sign(UIntPtr) Método

Definição

Calcula o sinal de um valor.

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

Parâmetros

value
UIntPtr

unativeint

Retornos

Int32

Um valor positivo se value for positivo, Zero se value for zero e um valor negativo se value for negativo.

Implementações

Comentários

É recomendável que uma função retorne 1, 0e -1, respectivamente.

Aplica-se a