From: Dennis Marsa (firstname.lastname@example.org)
Date: Mon May 05 2003 - 12:11:00 PDT
Kurt Baty wrote:
> Precedence: bulk
> > From email@example.com Mon May 5 13:41:55 2003
> > > 2 ** -1 = 1 = 0.5
> > > -2 ** -1 = -1 = -0.5
> please note that:
> x_real = 0.5;
> x = x_real;
> $display("x = %0d = x_real =",x,x_real);
> for(y=limit;y>=-limit;y=y-1) begin
> Highest level modules:
> x = 1 = x_real =0.5
I am not sure what you are trying to convey with that
first $display statement before the main loop in your
Are you trying to show that reals are being rounded
to nearest as opposed to being rounded towards zero?
I had figured the results
2 ** -1 = 1
-2 ** -1 = -1
were a result of rounding to nearest.
But, my specific question is, are these the results you are
advocating for these particular operands?
From James' email today and from the discussion this morning, I had
thought the desired results would be:
2 ** -1 = 0
-2 ** -1 = 0
This archive was generated by hypermail 2.1.4
: Mon May 05 2003 - 12:11:51 PDT
sponsored by Boyd Technology, Inc.