Idioma

Int64.Sign(Int64) Método

Definição

Calcula o sinal de um valor.

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

Parâmetros

value
Int64

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