SqlFunctions.Sign Method

 

Returns the positive (+1), zero (0), or negative (-1) sign of the specified expression.

Namespace:   System.Data.Entity.SqlServer
Assembly:  EntityFramework.SqlServer (in EntityFramework.SqlServer.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticSign(Nullable<Decimal>)

Returns the positive (+1), zero (0), or negative (-1) sign of the specified expression.

System_CAPS_pubmethodSystem_CAPS_staticSign(Nullable<Double>)

Returns the positive (+1), zero (0), or negative (-1) sign of the specified expression.

System_CAPS_pubmethodSystem_CAPS_staticSign(Nullable<Int32>)

Returns the positive (+1), zero (0), or negative (-1) sign of the specified expression.

System_CAPS_pubmethodSystem_CAPS_staticSign(Nullable<Int64>)

Returns the positive (+1), zero (0), or negative (-1) sign of the specified expression.


SqlFunctions.Sign Method (Nullable<Decimal>)

Returns the positive (+1), zero (0), or negative (-1) sign of the specified expression.

[DbFunctionAttribute("SqlServer", "SIGN")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "arg")]
public static Nullable<decimal> Sign(
	Nullable<decimal> arg
)

Parameters

arg
Type: System.Nullable<Decimal>

A numeric expression.

Return Value

Type: System.Nullable<Decimal>

The sign of the input expression.


SqlFunctions.Sign Method (Nullable<Double>)

Returns the positive (+1), zero (0), or negative (-1) sign of the specified expression.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "arg")]
[DbFunctionAttribute("SqlServer", "SIGN")]
public static Nullable<double> Sign(
	Nullable<double> arg
)

Parameters

arg
Type: System.Nullable<Double>

A numeric expression.

Return Value

Type: System.Nullable<Double>

The sign of the input expression.


SqlFunctions.Sign Method (Nullable<Int32>)

Returns the positive (+1), zero (0), or negative (-1) sign of the specified expression.

[DbFunctionAttribute("SqlServer", "SIGN")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "arg")]
public static Nullable<int> Sign(
	Nullable<int> arg
)

Parameters

arg
Type: System.Nullable<Int32>

A numeric expression.

Return Value

Type: System.Nullable<Int32>

The sign of the input expression.


SqlFunctions.Sign Method (Nullable<Int64>)

Returns the positive (+1), zero (0), or negative (-1) sign of the specified expression.

[DbFunctionAttribute("SqlServer", "SIGN")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "arg")]
public static Nullable<long> Sign(
	Nullable<long> arg
)

Parameters

arg
Type: System.Nullable<Int64>

A numeric expression.

Return Value

Type: System.Nullable<Int64>

The sign of the input expression.