NFloat.IsOddInteger(NFloat) 方法

定義

判斷值是否代表奇數整數。

public:
 static bool IsOddInteger(System::Runtime::InteropServices::NFloat value) = System::Numerics::INumberBase<System::Runtime::InteropServices::NFloat>::IsOddInteger;
public static bool IsOddInteger(System.Runtime.InteropServices.NFloat value);
static member IsOddInteger : System.Runtime.InteropServices.NFloat -> bool
Public Shared Function IsOddInteger (value As NFloat) As Boolean

參數

value
NFloat

要檢查的值。

傳回

truevalue 為奇整數;否則,為 false

實作

備註

此方法正確處理浮點數值,因此 3.0 會回傳 true ,而 3.3 會回傳 false

返回值 false 不代表會 IsEvenInteger(TSelf) 返回 true。 例如,帶有分數部分的數字, 3.3則不是偶數或奇數。

適用於