Date: Wed, 11 Jun 2008 05:20:18 -0700
Reply-To: Mark Bjerknes <mark.bjerknes@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Mark Bjerknes <mark.bjerknes@GMAIL.COM>
Organization: http://groups.google.com
Subject: Re: Floating point error
Content-Type: text/plain; charset=ISO-8859-1
On Jun 10, 4:32 pm, ms...@albany.edu (Mike Zdeb) wrote:
> hi ... you could 'punt' at this point and make HHMMSS a character variable that looks like the
> formatted numeric version you are trying to use in GPLOT ...
>
> data testit;
> input volume hhmmss;
> charvar = put(hhmmss, time5.);
> cards;
> 300 53075
> 100 53095
> -600 53116
> -100 53142
> ;
> run;
>
> symbol1 v=dot c=blue;
>
> proc gplot data=testit;
> plot volume * charvar / haxis='14:43' '14:44' '14:45' '14:46';
> run;
> quit;
>
> --
> Mike Zdeb
> U@Albany School of Public Health
> One University Place
> Rensselaer, New York 12144-3456
> P/518-402-6479 F/630-604-1475
>
>
>
> > The following snippet generates a floating point error in 9.1.3 under
> > Windows. Tech support says the issue doesn't present under 9.2 and
> > suggests upgrading. Any other ideas?
>
> > data testit;
> > input volume hhmmss;
> > cards;
> > 300 53075
> > 100 53095
> > -600 53116
> > -100 53142
> > ;
>
> > proc gplot data=testit;
> > plot volume*hhmmss ;
> > format hhmmss time5.;
> > run;
> > quit;
>
> > Many thanks,
>
> > Mark Bjerknes- Hide quoted text -
>
> - Show quoted text -
Punting may be the only way to go with 9.1.3. Many thanks for your
answer.
Mark
|