Convert.CheckIfSingleIsInteger(Single) 方法

定義

判斷變 Single 數是否包含整數值。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

public:
 static float CheckIfSingleIsInteger(float s);
public static float CheckIfSingleIsInteger(float s);
static member CheckIfSingleIsInteger : single -> single
Public Shared Function CheckIfSingleIsInteger (s As Single) As Single

參數

s
Single

Single要測試。

傳回

s 包含整數值, s 則回傳。 若不行,則會拋出例外。

適用於