I see... that answers half of my question. This presumes I wanna convert from binary to Integer. But is it possible to "convert" a Integer value to binary. For example, if one of my program's users enters a value, how can I show him the conversion in binary? "Marin David Condic" a �crit dans le message news: 9a2dnu$sff$1@nh.pace.co.uk... > It could not possibly get any easier. Ada allows you to express numeric > literals in bases other than 10. The syntax is B#nnnn# where B is a base and > the nnnn is the number in appropriate base representation. (octal, hex, > binary,... base 7 or 5 if you want to be unique!) So a binary number could > be expressed as: > > 2#1111_1111_1111_1111# > > or just for fun: > > 16#FFFF# > 8#177777# > 10#65535# > > IIRC, you can only use bases between 2..16 - but that covers most of the > ground anybody would want. > > Note also that burried somewhere in Text_IO are routines that will allow you > to print results using a base other than 10 - just in case you want to do a > little I/O with your bits... > > MDC > -- > Marin David Condic > Senior Software Engineer > Pace Micro Technology Americas www.pacemicro.com > Enabling the digital revolution > e-Mail: marin.condic@pacemicro.com > Web: http://www.mcondic.com/ > > > "Bob Gratton" wrote in message > news:9e2x6.568987$JT5.15730002@news20.bellglobal.com... > > 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 > > > > > >