Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
integer-expression で指定した小数点以下の桁数に numeric-expression を丸めます。
ROUND( numeric-expression, integer-expression )
numeric-expression 関数に渡される、丸めの対象となる数。
integer-expression 正の整数は、丸めを行う小数点の右側の有効桁数を指定します。負の式は、丸めを行う小数点の左側の有効桁数を指定します。
NUMERIC
この関数の結果は numeric または double です。数値の結果があり、整数 integer-expression が負の値の場合、精度は 1 ずつ増えます。
SQL/2008 ベンダー拡張。
次の文は、値 123.200 を返します。
SELECT ROUND( 123.234, 1 );