Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
将 numeric-expression 舍入到小数点后的指定 integer-expression 位数。
ROUND( numeric-expression, integer-expression )
numeric-expression 要舍入的数字(传递给函数)。
integer-expression 正整数指定小数点右边舍入到的有效位数。负数表达式指定小数点左边舍入到的有效位数。
NUMERIC
此函数的结果为数字或双精度值。当结果为数字值并且整数 integer-expression 是负值时,精度将加一。
SQL/2008 服务商扩充。
以下语句返回值 123.200。
SELECT ROUND( 123.234, 1 );