Int128.Sign(Int128) Método

Definição

Calcula o sinal de um valor.

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

Parâmetros

value
Int128

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