On 15 Dec 2006 at 15:57, George Gwilt 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.

> Try this on the current versions of SMSQE (on Q60 or QPC2) and you  
> get the overflow message.

And rightly so.
 
> However,
> 
> f%=0-32768/1, and
> 
> print -32768/1
>
> both work.

so does i%= - 32768 

integers go from +-32768 to 32767.

Wolfgang

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

Reply via email to