oracle函数 round(x[,y])

[Function] returns the value after rounding

Parameters x, y, numeric expressions, if y is not an integer of the integer part of y intercept, if y> 0 decimal places are rounded to y if y is less than 0 is rounded to the decimal point to the left of y bits.

[Back] Digital

 

[Example]

  select round(5555.6666,2.1),round(5555.6666,-2.6),round(5555.6666) from dual;

Returns: 5555.67, 5600, 5556

 

] [Similar trunc (x [, y])

Return values ​​taken, use the same round (x [, y]), but not rounded

Guess you like

Origin www.cnblogs.com/fanweisheng/p/11120138.html