Date: Thu, 10 Aug 2000 11:13:07 -0500
Reply-To: "Cao, William" <WCao@HRBLOCK.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Cao, William" <WCao@HRBLOCK.COM>
Subject: Re: INT Problem
Content-Type: text/plain; charset="iso-8859-1"
Well, the problem is if you multiply .8251 by 610000, it is exactly 503311.
William
-----Original Message-----
From: Paul Dorfman [mailto:paul_dorfman@HOTMAIL.COM]
Sent: Thursday, August 10, 2000 11:07 AM
To: SAS-L@LISTSERV.UGA.EDU
Subject: Re: INT Problem
I think it should be 503310. If you need 503311, use CEIL. I
have tested the
thing on 6.12 NT, 7.0 NTS, 6.09e os/390, 8.0 os/390, and
none has reproduced
your funny output.
Kind regards,
=========================
Paul M. Dorfman
Jacksonville, Fl
=========================
>From: "K.Shide" <shide@POP16.ODN.NE.JP>
>Reply-To: "K.Shide" <shide@POP16.ODN.NE.JP>
>To: SAS-L@LISTSERV.UGA.EDU
>Subject: INT Problem
>Date: Fri, 11 Aug 2000 00:32:22 +0900
>
>I carried out the following program and found
>something funny output.
>
>data aaa;
>input a b;
>cards;
>0.8251 610000
>;
>run;
>
>
>data aaa;
>set aaa;
>c=a*b;
>d=int(c);
>run;
>
>proc print;
>
>
>Output is like following.
>
> a b c d
>0.8251 610000 503311 503310
>
>
>
>I think d should be 503311.
>If anybody found same problem as mine and found how to
dodge this
>problem, please give me any advice.
>
>Regards,
>K.Shidehara
>
>Kazutoshi.Shidehara@gecapital.com
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com
|