UInt64.Sign(UInt64) Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
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.
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.