QB / QB64 Discussion Forum      Other Subforums, Links and Downloads
 Return to Index  

Good catch! What say, Moneo?

October 18 2007 at 9:21 AM
  (Premier Login iorr5t)
Forum Owner


Response to Why are you dimming DOUBLE numbers as SINGLE?

DIM n AS SINGLE
n = 254.50001#
PRINT n

gives the result " 254.5".

So R = CINT(n) is the same as R = CINT(254.5)

???

Mac

 
 Respond to this message   
Responses

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