Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: TRUNC equivalent to return the decimal part?
> 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
![]() |
![]() |