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


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


Evaluates a numeric MDX expression and returns a rounded value. This function is an InterSystems extension to MDX.
Returned Type
This function returns a numeric expression.
Syntax and Details
ROUND(numeric_expression,decimal_places)
Where:
Example
The following shows a simple example:
SELECT ROUND(MEASURES.[avg allergy count],2) ON 0, 
patgrpd.[patient group].MEMBERS ON 1 FROM patients
 
                                     ROUND
1 Group A                              0.97
2 Group B                              1.06
3 None                                 0.97


Previous section           Next section
View this book as PDF
Copyright © 1997-2019 InterSystems Corporation, Cambridge, MA
Content Date/Time: 2019-02-22 22:30:11