語言

UInt32.Sign(UInt32) 方法

定義

計算值的符號。

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

參數

value
UInt32

要計算符號的值。

傳回

當 value 為正值時 Zerovalue ,若為零,則為負值 value 。

實作

備註

建議 一個函數分別回傳 1、 0和 -1。

適用於