Quantcast
Channel: DIAdem topics
Viewing all articles
Browse latest Browse all 3197

sqr() function calculates the square root, not square

$
0
0

DIAdem 2020

 

I noticed that the sqr() function calculates the square root, not the square.  The pop-up help says that sqr() calculates the square root, but the help document states it calculates the square (vbs function).  The Square() alias is in the help file, but doesn't exist.  You can still calculate the square of a number using 4^2.

 

Call LogFileWrite("sqr(4) = " & Str(sqr(4),"AutoAdj"))

Result:  sqr(4) = 2

 

DIAdem already has the sqrt() function.

 

 

 


Viewing all articles
Browse latest Browse all 3197

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>