UInt16.Sign(UInt16) Metodo

Definizione

Calcola il segno di un valore.

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

Parametri

value
UInt16

Valore il cui segno deve essere calcolato.

Restituisce

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