Edit

Share via


SqlFunctions.SquareRoot Method

Definition

Returns the square root of the specified number.

Overloads

SquareRoot(Nullable<Decimal>)

Returns the square root of the specified number.

SquareRoot(Nullable<Double>)

Returns the square root of the specified number.

Remarks

You cannot call this function directly. This function can only appear within a LINQ to Entities query.

This function is translated to a corresponding function in the database. For information about the corresponding SQL Server function, see SQRT (Transact-SQL).

SquareRoot(Nullable<Decimal>)

Returns the square root of the specified number.

public:
 static Nullable<double> SquareRoot(Nullable<System::Decimal> arg);
[System.Data.Objects.DataClasses.EdmFunction("SqlServer", "SQRT")]
public static double? SquareRoot (decimal? arg);
[<System.Data.Objects.DataClasses.EdmFunction("SqlServer", "SQRT")>]
static member SquareRoot : Nullable<decimal> -> Nullable<double>
Public Shared Function SquareRoot (arg As Nullable(Of Decimal)) As Nullable(Of Double)

Parameters

arg
Nullable<Decimal>

A numeric expression.

Returns

The square root of the input value.

Attributes

Remarks

You cannot call this function directly. This function can only appear within a LINQ to Entities query.

This function is translated to a corresponding function in the database. For information about the corresponding SQL Server function, see SQRT (Transact-SQL).

Applies to

SquareRoot(Nullable<Double>)

Returns the square root of the specified number.

public:
 static Nullable<double> SquareRoot(Nullable<double> arg);
[System.Data.Objects.DataClasses.EdmFunction("SqlServer", "SQRT")]
public static double? SquareRoot (double? arg);
[<System.Data.Objects.DataClasses.EdmFunction("SqlServer", "SQRT")>]
static member SquareRoot : Nullable<double> -> Nullable<double>
Public Shared Function SquareRoot (arg As Nullable(Of Double)) As Nullable(Of Double)

Parameters

arg
Nullable<Double>

A numeric expression.

Returns

The square root of the input value.

Attributes

Remarks

You cannot call this function directly. This function can only appear within a LINQ to Entities query.

This function is translated to a corresponding function in the database. For information about the corresponding SQL Server function, see SQRT (Transact-SQL).

Applies to