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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,40bb6b17805d266b X-Google-Attributes: gid103376,public From: stt@houdini.camb.inmet.com (Tucker Taft) Subject: Re: How to calculate negative binary?? Date: 1997/04/03 Message-ID: #1/1 X-Deja-AN: 230465171 Sender: news@inmet.camb.inmet.com (USENET news) X-Nntp-Posting-Host: houdini.camb.inmet.com References: <01bc3bf9$a8a655e0$d87d8ea1@AaBbCcDd> Organization: Intermetrics, Inc. Newsgroups: comp.lang.ada Date: 1997-04-03T00:00:00+00:00 List-Id: Centaury (utopian@pl.jaring.my) wrote: : Compilation error occurs when I entered the line : : p:=2# - 1010110 # : and is caused by the negative value of the binary. How to correct it? p := -2#1010110#; No spaces are allowed between '#'s. The minus sign goes out front, and you need a semicolon at the end. See the syntax for "based literals" in RM95 2.4.2. : -- : Please mail replies to : : utopian@pl.jaring.my I did that too. -Tucker Taft stt@inmet.com http://www.inmet.com/~stt/ Intermetrics, Inc. Burlington, MA USA