Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (日本語) » Ultra Light データベース管理とリファレンス » Ultra Light SQL リファレンス » Ultra Light SQL 関数 » SQL 関数 (P ~ Z)

 

ROUND 関数 [数値]

integer-expression で指定した小数点以下の桁数に numeric-expression を丸めます。

構文
ROUND( numeric-expression, integer-expression )
パラメータ
  • numeric-expression   関数に渡される、丸めの対象となる数。

  • integer-expression   正の整数は、丸めを行う小数点の右側の有効桁数を指定します。負の式は、丸めを行う小数点の左側の有効桁数を指定します。

戻り値

NUMERIC

備考

この関数の結果は numeric または double です。数値の結果があり、整数 integer-expression が負の値の場合、精度は 1 ずつ増えます。

参照
標準と互換性
  • SQL/2003   ベンダ拡張。

次の文は、値 123.200 を返します。

SELECT ROUND( 123.234, 1 );