docs.intersystems.com
Home / InterSystems MDX Reference / MDX Functions / SQRT

InterSystems MDX Reference
SQRT
Previous section           Next section
InterSystems: The power behind what matters   
Search:  


Returns the square root of the given numeric value.
Returned Type
This function returns a number.
Syntax and Details
SQRT(numeric_expression)
Where:
Example
The first example shows the square root of the Patient Count measure:
SELECT SQRT(MEASURES.[%COUNT]) ON 0 FROM patients
 
                                      SQRT
                                        100
The next example uses the %LABEL function to apply a more detailed caption:
SELECT %LABEL(SQRT(MEASURES.[%COUNT]),"SQRT PAT CNT") ON 0 FROM patients
 
                              SQRT PAT CNT
                                        100
See Also


Previous section           Next section
View this book as PDF   |  Download all PDFs
Copyright © 1997-2019 InterSystems Corporation, Cambridge, MA
Content Date/Time: 2019-04-10 14:45:56