Share via


OperatorIntrinsics.SignDynamic<'T> Function (F#)

This is a library intrinsic. Calls to this function may be generated by evaluating quotations.

Namespace/Module Path: Microsoft.FSharp.Core.Operators.OperatorIntrinsics

Assembly: FSharp.Core (in FSharp.Core.dll)

// Signature:
SignDynamic : 'T -> int

// Usage:
SignDynamic x

Parameters

  • x
    Type: 'T

    The argument of the operation.

Return Value

A number representing the sign of x. 1 if x > 0, -1 if x < 0, 0 otherwise.

Remarks

This function is for use by compiled F# code and should not be used directly.

Platforms

Windows 8, Windows 7, Windows Server 2012, Windows Server 2008 R2

Version Information

F# Core Library Versions

Supported in: 2.0, 4.0, Portable, Portable

See Also

Reference

Operators.OperatorIntrinsics Module (F#)

Core.Operators Module (F#)