Skip to main content

This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.Opens in a new tab

For information on migrating to InterSystems IRISOpens in a new tab, see Why Migrate to InterSystems IRIS?

ROUND

数値 MDX 式を評価して、丸めた値を返します。この関数は、インターシステムズによる MDX への拡張機能です。

返りタイプ

この関数は、数値式を返します。

構文および詳細

ROUND(numeric_expression,decimal_places)

以下は、この指定の説明です。

  • numeric_expression は、数値式です。

  • decimal_places は、返り値に使用する小数点以下桁数を指定する整数リテラルです。既定値は 0 です。

以下に簡単な例を示します。

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
FeedbackOpens in a new tab