UInt16.Sign(UInt16) Yöntem

Tanım

Bir değerin işaretini hesaplar.

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

Parametreler

value
UInt16

İşareti hesaplanacak olan değer.

Döndürülenler

Pozitifse value pozitif bir değer, Zero sıfır ise value negatif ve negatifse value negatif bir değer.

Uygulamalar

Açıklamalar

bir işlevin sırasıyla , 1ve 0döndürmesi -1önerilir.

Şunlara uygulanır