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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,b2064a8dcdf0d4fd X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Mon, 11 Apr 2005 21:01:35 -0500 From: "Steve" Newsgroups: comp.lang.ada References: <1113225780.839999.151850@o13g2000cwo.googlegroups.com> Subject: Re: Prepend unsigned integer 32 number Date: Mon, 11 Apr 2005 19:03:17 -0700 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original Message-ID: NNTP-Posting-Host: 24.22.63.157 X-Trace: sv3-f8c1KTkrzKpH8dX196/1DTCsMas//pMnPhduvBFkWFLokGBESo5gJ2Mv/kG/JpxhhnHxAa+Fy8URZAX!xbFG3BpyPmOQShrGQCTkLEaBsd+P/hbjxt2dLf0qBNM6NNY3ntG7wkhdr1Bh X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news1.google.com comp.lang.ada:10384 Date: 2005-04-11T19:03:17-07:00 List-Id: I'm having a bit of trouble understanding the question. "pre-pend" presumably means to put in front of The unsigned intger 32 number tells me that you want to put a 32 bit number in front of some other number, although I don't know what representation that other number is in. Hmmm... the number is to be stored, not printed... could be binary... still scratching my head. Oh good... an example. Original number 2200, Prepended number 12200 Hmmm... my first thought was: 12200 is being prepended ot 2200. Wait! I see, a 1 is being prepended to 2200 to give 12200. Perhaps you're just looking for a string. Sounds like a homework question. Is it? Steve (The Duck) wrote in message news:1113225780.839999.151850@o13g2000cwo.googlegroups.com... >I am looking for a quick, clean method to pre-prend an unsigned integer > 32 number with another number; then reverse it. The resulting number > will be stored, not printed to the screen. > > For example: > Original number = 2200 > Prepended number = 12200 > > Any ideas? >