Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Numeric precision conversion : truncation instead of rounding

Re: Numeric precision conversion : truncation instead of rounding

From: <casey.kirkpatrick_at_gmail.com>
Date: 26 Oct 2005 12:59:33 -0700
Message-ID: <1130356773.408709.209190@o13g2000cwo.googlegroups.com>


Take your pick...

select cast(TRUNC(3.4567 * 100) / 100 as number(4,2)) from dual

or

select to_number(substr(to_char(3.4567,'00.0000'),1,6)) FROM DUAL Received on Wed Oct 26 2005 - 14:59:33 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US