Date: Thu, 2 Jul 2009 15:19:40 -0500
Reply-To: Joe Matise <snoopy369@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Joe Matise <snoopy369@GMAIL.COM>
Subject: Re: Truncate decimal
In-Reply-To: <6eca73440907021301v5abebaf7ic7d1cf28e7c49c60@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
FLOOR() (and its counterpart, CEIL() ) truncates decimals; FLOOR rounds
down, CEIL rounds up.
-Joe
On Thu, Jul 2, 2009 at 3:01 PM, OR Stats <stats112@gmail.com> wrote:
> Hello:
>
> I have numbers that are 100th decimal places. I would just like to
> truncate
> to the last whole number.
>
> E.g.,
>
> x= 98.01
> y=98
>
> x=98.99
> y=98
>
> How do we do this?
>
|