共用方式為


OperatorIntrinsics.SignDynamic<'T> 函式 (F#)

這是程式庫內建。 對這個函式的呼叫可以藉由評估引號產生。

命名空間/模組路徑: Microsoft.FSharp.Core.Operators.OperatorIntrinsics

組件:FSharp.Core (在 FSharp.Core.dll 中)

// Signature:
SignDynamic : 'T -> int

// Usage:
SignDynamic x

參數

  • x
    型別:'T

    作業的引數。

傳回值

數字,以代表正負號的 x 1 if x > 0, -1 if x < 0, 0否則

備註

這個函式是由已編譯的 F# 程式碼使用,並不能直接使用。

平台

Windows 7、Windows Vista SP2、Windows XP SP3、Windows XP x64 SP2、Windows Server 2008 R2、Windows Server 2008 SP2、Windows Server 2003 SP2

版本資訊

F# 執行階段

支援版本:2.0、4.0

Silverlight

支援版本:3

請參閱

參考

Operators.OperatorIntrinsics 模組 (F#)

Core.Operators 模組 (F#)