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: TRUNC equivalent to return the decimal part?

Re: TRUNC equivalent to return the decimal part?

From: Mark Stratford <mark_stratford98_at_yahoo.co.uk>
Date: 10 Apr 2003 02:34:32 -0700
Message-ID: <690213b6.0304100134.4c17d416@posting.google.com>


> Is there any function in SQL that is like TRUNC that returns just the decimal portion?

> > I know that it's possible to do this with either of the following:
> > 1. decimal = number - trunc(number)

I don't think there is a built-in (at least not up to & incl 8i). You'll just have to do the subtraction which you suggested. It's not that ugly. Received on Thu Apr 10 2003 - 04:34:32 CDT

Original text of this message

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