Round( ) 函数

传回一个数值,该数值是按照指定的小数位元数进行四舍五入运算的结果

oracle一般常用于计算表空间内存还有多少空间

语法

ROUND( number, decimal_places )

number : 需四舍五入处理的数值

decimal_places : 四舍五入 , 小数取几位 ( 预设为 0 )

返回值类型

数字

例子

select round(1024.1024, 0) from dual; 回传 1024

select round(1024.1024, 1) from dual; 回传 1024.1

select round(1024.1024, 2) from dual; 回传 1024.1

select round(1024.1024, 3) from dual; 回传 1024.102

select round(-1024.1024, 2) from dual; 回传 -1024.1

查询表空间的时候

oracle中的round()方法的用法

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-15
  • 2021-07-30
  • 2022-01-01
  • 2022-12-23
  • 2022-01-07
猜你喜欢
  • 2022-12-23
  • 2021-06-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-29
  • 2022-12-23
相关资源
相似解决方案