Search found 4 matches

by Krieger
Nov 10, 2018 10:39
Forum: General
Topic: [Code question] variables and unwanted results.
Replies: 10
Views: 596

Re: [Code question] variables and unwanted results.

Thank you all for the time you took to look at the code. I realize now that i was making some mistakes too, it were long nights and i was staring at the screen for way too long. I indeed made some mistakes concerning the parenthesis, but i also ran a lot of newly made time consuming tests to find so...
by Krieger
Nov 10, 2018 1:56
Forum: General
Topic: [Code question] variables and unwanted results.
Replies: 10
Views: 596

Re: [Code question] variables and unwanted results.

Interesting. A macro which addresses a constant produces the desired results, while a define would generate some kind of problem. Yet again, thank you. This reinvigorates me to completely redo what i was doing from scratch. I was almost ready to go back to C, although i love FB and how optimized and...
by Krieger
Nov 10, 2018 1:09
Forum: General
Topic: [Code question] variables and unwanted results.
Replies: 10
Views: 596

Re: [Code question] Self referencing variables: Human error or bug ?

Hi Krieger, welcome to the forum! By the way, you may need to be careful with this kind of calculation: y = y * cs - z * sn z = z * cs + y * sn Because the value of y will change before the new value of z is calculated. The best way to avoid this kind of confusion is to store the previous values of...
by Krieger
Nov 09, 2018 11:29
Forum: General
Topic: [Code question] variables and unwanted results.
Replies: 10
Views: 596

[Code question] variables and unwanted results.

Greetings, I have not used Freebasic for roughly 8 years and recently picked it up again. To my understanding (which could be horribly wrong) the compiler should be able to handle self referencing variables as in: x = (x +1) , x = (x +y) / x. I wanted to make a doodle ( code sketch for fun) around a...

Go to advanced search