SquareRoot Function

Top  Previous  Next

Returns the square root of the specified number. If expression  is a negative number, SquareRoot  returns square root of its absolute value.

 

Short form: "sqr".

 

Syntax

 

value = SquareRoot( expression )

 

Parameters

expression

 

any numeric expression

 

 

 

returns

 

the square root of the specified number

 

Examples

 

value = SquareRoot( 4 )                 ' Returns 2

value = SquareRoot( -4 )                ' Returns 2

value = SquareRoot( 2 )                 ' Returns 1.414.