From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a96b706fab1e8c2c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-30 09:06:54 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!hub.org!hub.org!newsfeed.wirehub.nl!news.maxwell.syr.edu!howland.erols.net!netnews.com!xfer02.netnews.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!news.mindspring.net!not-for-mail From: Larry Hazel Newsgroups: comp.lang.ada Subject: Re: Binary value Date: Fri, 30 Mar 2001 11:03:21 -0600 Organization: MindSpring Enterprises Message-ID: <3AC4BC59.31B669F9@mindspring.com> References: <9e2x6.568987$JT5.15730002@news20.bellglobal.com> NNTP-Posting-Host: c7.ae.9d.73 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Server-Date: 30 Mar 2001 17:03:55 GMT X-Mailer: Mozilla 4.76 [en] (Win98; U) X-Accept-Language: en,x-ns11F8K63r3NhQ,x-ns2r2e09OnmPe2 Xref: supernews.google.com comp.lang.ada:6255 Date: 2001-03-30T17:03:55+00:00 List-Id: Bob Gratton wrote: > > Ok... now I know how to use bitwise operators... I'd like to know also how > to convert an integer value to its equivalent in binary. > > e.g.: 123 => 1111011 > > Thanx again! > > Bob To write a binary constant use 2#1111011#, if I remember correctly. Larry