UInt32.Sign(UInt32) Método

Definição

Calcula o sinal de um valor.

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

Parâmetros

value
UInt32

O valor cujo sinal deve ser calculado.

Retornos

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