|
Victor,
data _null_ ;
bstring = "1011010111" ;
num = input ( bstring , binary10. ) ;
put num= num= binary10. ;
run ;
IanWhitlock@westat.com
-----Original Message-----
From: Victor Aina [mailto:aina@SFU.CA]
Sent: Wednesday, December 03, 2003 9:51 AM
To: SAS-L@LISTSERV.UGA.EDU
Subject: Binary to Real conversion
Hello everyone,
Is there a SAS function that allows conversion of
binary strings to real numbers or integers? So far,
I haven't found it in the manuals (including SAS/IML).
Or perhaps someone has written a macro code that
accomplishes the conversion?
Thanks,
V.
--
+----------------------------------------------------------+
| victor aina | e-mail: | fax:(503) 690-7396 |
|