Share via


Int128.Sign(Int128) Metodo

Definizione

Calcola il segno di un valore.

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

Parametri

value
Int128

Restituisce

Int32

Valore positivo se value è positivo, Zero se value è zero e un valore negativo se value è negativo.

Implementazioni

Commenti

È consigliabile che una funzione restituisca 1rispettivamente , 0e -1.

Si applica a