SQR

SQR(number)

Returns the square root of a number (Double).


numberThe number you want the square root of (Double).

REMARKS
* The "number" can be any numeric expression.
* If "number" < 0, then a runtime error will occur.
* The equivalent Excel function is Application.WorksheetFunction.SQRT
* The equivalent .NET function is System.Math.Sqrt
* For the Microsoft documentation refer to learn.microsoft.com

Debug.Print Sqr(9)     '= 3  
Debug.Print Sqr(16) '= 4
Debug.Print Sqr(-16) '= 4

© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited Top