QB / QB64 Discussion Forum      Other Subforums, Links and Downloads
 

 Return to Index  

The # at the end of the number was a dead giveaway!

October 18 2007 at 10:39 PM
  (Login burger2227)
R


Response to Re: Why are you dimming DOUBLE numbers as SINGLE?

 

My version of QB 4.5 placed it there when I typed it in.

I gather your's did not. So I tried making N AS DOUBLE and the .5000001 tipped the scales in favor of CINT. Of course with larger numbers CINT would bomb!

I was stumped for a while, like you were about the 255 value being rounded.
I was thinking perhaps it had something to do with 256 values in QB.

Then I came up with the fact that SINGLE cannot use that many places. So the one was never read.

Ted

 
 Respond to this message   
Responses

 Copyright © 1999-2014 Network54. All rights reserved.   Terms of Use   Privacy Statement  

Newbies usually go to www.qbasic.com and click on The QBasic Forum
Forum regulars have their own ways, which include The QBasic Community Forums