VBA Sqr Function: The Sqr function in VBA returns the square root for the specified number.

Syntax

Parameter

Number (required) – This parameter represents a positive numeric value that you want to calculate the square root.

Return

This function returns the square root for the specified number.

Example 1

Output

5

VBA Sqr Function

Example 2

Output

2.5

VBA Sqr Function

Example 3

Output        

VBA Sqr Function

Example 4

Output

0

VBA Sqr Function

Pin It on Pinterest

Share This