DeepSee MDX Reference
ROUND
[Home] [Back] [Next]
InterSystems: The power behind what matters   
Class Reference   
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