Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Sqr - function of language VBScript

Description:
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) Number greater than 0
Note:
For more common types of the square root, see the Exponentiation (^) operator.
Example:
VBScriptSelect and copy to clipboard

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
PROMOTIC 9.0.0 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice