From: stt@houdini.camb.inmet.com (Tucker Taft)
Subject: Re: How to calculate negative binary??
Date: 1997/04/03
Date: 1997-04-03T00:00:00+00:00 [thread overview]
Message-ID: <E82qqG.Fr9.0.-s@inmet.camb.inmet.com> (raw)
In-Reply-To: 01bc3bf9$a8a655e0$d87d8ea1@AaBbCcDd
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
prev parent reply other threads:[~1997-04-03 0:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-03-31 0:00 How to calculate negative binary?? Centaury
1997-03-31 0:00 ` Mark A Biggar
1997-04-03 0:00 ` Tucker Taft [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox