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

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


Returns the base-ten logarithm of the given numeric value.
Returned Type
This function returns a number.
Syntax and Details
LOG(numeric_expression)
Where:
Example
The first example shows the base-ten logarithm for the %COUNT measure:
SELECT LOG(MEASURES.[%COUNT]) ON 0 FROM patients
 
                                       LOG
                                          4
The next example uses the %LABEL function to apply a more detailed caption:
SELECT %LABEL(LOG(MEASURES.[%COUNT]),"LOG PAT CNT") ON 0 FROM patients
 
                               LOG PAT CNT
                                          4
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-18 08:27:07