Date: Wed, 21 Jan 2009 02:14:40 -0800
Reply-To: GuyA <guya.carpenter@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: GuyA <guya.carpenter@GMAIL.COM>
Organization: http://groups.google.com
Subject: Re: IFN function - strange behaviour
Content-Type: text/plain; charset=ISO-8859-1
All interesting, thanks.
I didn't know there was a divide function. Just a quick test though to
check to myself that it exists seemed to bring up an unusual result:
Code:
data test;
input var1 var2;
var3=divide(var1,var2);
put var3;
datalines;
1 2
2 1
0 0
0 1
1 0
;
Output:
74 input var1 var2;
75 var3=divide(var1,var2);
76 put var3;
77 datalines;
0.5
2
.
0
I
The last observation output is not a number. It's the "pipe"
character. And strangely, the variable was still numeric.
Any ideas?
|