Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Sqr - function of language VBScript

Description:
Returns the square root of a number.

For the purposes of PROMOTIC system, it is more usefull to use the method: Pm.Sqrt.

Syntax:
Sqr(number As Double) As Double
Calling:
n = Sqr(number)
Parameters:
number(Double) can be any valid numeric expression greater or equal 0
Note:
For more common types of the square root, see the Exponentiation (^) operator.
Example:
Dim nSqr
nSqr = Sqr(4) ' Returns 2
nSqr = Sqr(23) ' Returns 4.79583152331272
nSqr = Sqr(0) ' Returns 0
nSqr = Sqr(-4) ' generates a runtime error
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice