SqlDecimal.Abs Method (SqlDecimal)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: