I tried the double and it just doubled the problem..with more decimal places to screw up.
I have now updated my loop to:
cubicx = -9.999999
DO
IF (cubica * cubicx ^ 3) + (cubicb * cubicx ^ 2) + (cubicc * cubicx) + cubicd = 0 THEN...
yeah, i cud use the >= to stop it, but i want to test the values at step 0.01, so even tho it wud actually stop, the program wud test the wrong values!
cheers anyway.....i'll try the Double thing!
I've written a program in qbasic and it all works apart from one part...I have given a variable the value -100, and at the end of the loop that follows I am adding .01 to the variable, I want the loop to stop when the variable's value reaches 100.01, simple enough but as the program runs the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.