On 16 Dec 2006 at 10:56, Marcel Kilgus wrote:

> Wolfgang Lenerz wrote:
> >> On an ordinary QL I can type
> >> 
> >> f%=-32768/1
> >> 
> >> and find that f% now contains -32768.
> >>
> > Well that must be a nice bug.
> >
> > unless I'm mistaken, 32768/1 = 32768
> >
> > and 32768 just doesn't fit in an integer.
> 
> Yes, but -32768 does. Notice the minus ;-)
> 
Err, yes  that's what I said a little later on in that mail (integers go from 
-32768 to 32768).

laurence wrote:

> The comment that "32768/1" doesn't fit in an integer is totally irrelevent, 
> as the use of the "/", rather than "DIV", means the calculation will always 
> be done in floating point.
> 
> The result, in any case, is "-32768" which is a perfectly valid integer.
> 
Err, what?
32768/1 = -32768 ????
How can that be?
I still think that there is no problem, integers go from -32768 to 32767, NOT 
to 32768.
Wolfgang

www.scp-paulet-lenerz.com
_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm

Reply via email to