LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (December 2003, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 3 Dec 2003 10:29:22 -0500
Reply-To:   Ian Whitlock <WHITLOI1@WESTAT.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Ian Whitlock <WHITLOI1@WESTAT.COM>
Subject:   Re: Binary to Real conversion
Comments:   To: Victor Aina <aina@SFU.CA>
Content-Type:   text/plain

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 |


Back to: Top of message | Previous page | Main SAS-L page