Byte.Sign(Byte) Yöntem

Tanım

Bir değerin işaretini hesaplar.

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

Parametreler

value
Byte

İş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