SELECT round(107.088, 2) from dual
ROUND(107.088,2) |
---|
107.09 |
TRUNC:依第二個參數來決定返回的位數
TRUNC( number [, decimal_places] )
SELECT trunc(107.938439849, 3) from dual
TRUNC(107.938439849,3) |
---|
107.938 |
ROUND(107.088,2) |
---|
107.09 |
TRUNC( number [, decimal_places] )
TRUNC(107.938439849,3) |
---|
107.938 |
0 Comments:
張貼留言