SqlDecimal.Abs Method (SqlDecimal)

 

The Abs method gets the absolute value of the SqlDecimal parameter.

Namespace:   System.Data.SqlTypes
Assembly:  System.Data (in System.Data.dll)

public static SqlDecimal Abs(
	SqlDecimal n
)

Parameters

n
Type: System.Data.SqlTypes.SqlDecimal

A SqlDecimal structure.

Return Value

Type: System.Data.SqlTypes.SqlDecimal

A SqlDecimal structure whose Value property contains the unsigned number representing the absolute value of the SqlDecimal parameter.

.NET Framework
Available since 1.1
Return to top
Show: