UInt64.Sign(UInt64) Método

Definição

Calcula o sinal de um 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

O valor cujo sinal deve ser calculado.

Devoluções

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

Implementações

Observações

Recomenda-se que uma função retorne 1, 0, e -1, respetivamente.

Aplica-se a