Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question about numeric condition in IF ...
#11
Quote:I bet it's full of bugs... :roll:

view cvs newb! be owned by the ll src... link on pic in sig, i keep short word so you dont get lost, kthx =p
Reply
#12
Quote:
Neo Wrote:Actually Aga...

Integer (16bit) goes from -32768 to 32767.
Not the other way around.
Aga just left that in to make sure you guys were paying attention. :wink:
*****

Big Grin



Quote:view cvs newb! be owned by the ll src... link on pic in sig, i keep short word so you dont get lost, kthx =p

:normal:

I guess it's nice...
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Reply
#13
I'll do it this way: I can bet that the "Integer" this guy is talking about is integer "in the math context", i.e. nothing about limits but just about whole numbers.

Code:
Dim x As Double
Do
   Input "Number"; x
   If x = Int (x) Then Exit Do
Loop
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#14
Nathan,

You're most probably right. The newbee did not specify clearly. Plus, he has not bothered to post again, leaving us to go off on a tangent validating 16 bit integers.

Yes, as per your observation, we probably did an over-kill on the solution to his problem. Thanks.
*****
Reply
#15
Well, you all discussed very important things. I bet the guy can learn lots of things if he wants to just reading this thread, which is always good Smile
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)