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

SQL Anywhere 11.0.1 (中文) » UltraLite - 数据库管理和参考 » UltraLite SQL 参考 » UltraLite SQL 函数 » SQL 函数 (P-Z)

 

ROUND 函数 [Numeric]

numeric-expression 舍入到小数点后的指定 integer-expression 位数。

语法
ROUND( numeric-expression, integer-expression )
参数
  • numeric-expression   要舍入的数字(传递给函数)。

  • integer-expression   正整数指定小数点右边舍入到的有效位数。负数表达式指定小数点左边舍入到的有效位数。

返回值

NUMERIC

注释

此函数的结果为数字或双精度值。当结果为数字值并且整数 integer-expression 是负值时,精度将加一。

另请参见
标准和兼容性
  • SQL/2003   服务商扩充。

示例

以下语句返回值 123.200。

SELECT ROUND( 123.234, 1 );