Oracle8i SQL Reference Release 2 (8.1.6) A76989-01 |
|
Functions, 109 of 121
TRUNC
returns n truncated to m decimal places. If m is omitted, n is truncated to 0 places. m can be negative to truncate (make zero) m digits left of the decimal point.
SELECT TRUNC(15.79,1) "Truncate" FROM DUAL; Truncate ---------- 15.7
SELECT TRUNC(15.79,-1) "Truncate" FROM DUAL; Truncate ---------- 10
|
Copyright © 1999 Oracle Corporation. All Rights Reserved. |
|