Search found 12 matches

by dinokilla
Fri Feb 01, 2008 5:49 pm
Forum: Freebasic Questions & Answers
Topic: simple decimal addition
Replies: 9
Views: 15084

hehehe, that wouldn't work either because it will just print it in the correct format but if you ever had to compare the answer the actual number might still be 3.230000000000000001 but I got it figured out for what I needed it for. I just make sure that I'm always using an integer for everything so...
by dinokilla
Fri Feb 01, 2008 12:37 pm
Forum: Freebasic Questions & Answers
Topic: simple decimal addition
Replies: 9
Views: 15084

run your code but give it a random seed (randomize timer) and run it a few times and you will see the problem I am talking about...
by dinokilla
Wed Jan 30, 2008 1:26 am
Forum: Freebasic Questions & Answers
Topic: simple decimal addition
Replies: 9
Views: 15084

Wow what a huge pain in the butt just to do simple decimal addition!!! :x
by dinokilla
Tue Jan 29, 2008 11:46 pm
Forum: Freebasic Questions & Answers
Topic: simple decimal addition
Replies: 9
Views: 15084

ok how do I go about doing that?

[edit] nevermind I get it, is there any reason I couldn't use long's for that? thanks I never woulda thought of that! :D
by dinokilla
Tue Jan 29, 2008 5:09 pm
Forum: Freebasic Questions & Answers
Topic: simple decimal addition
Replies: 9
Views: 15084

even when I try to convert it to a string and then chop off the end and convert it back to single it still does that occasionaly. Most of the time it works fine but for whatever weird reason it will do that, the strangest part to me is sometimes there will be no carry involved, like the last digit o...
by dinokilla
Tue Jan 29, 2008 1:31 am
Forum: Freebasic Questions & Answers
Topic: simple decimal addition
Replies: 9
Views: 15084

simple decimal addition

so I'm making some crappy little math tutor programs for a younger sibling, I thought doing operations with decimals would be pretty straight forward but I come up with odd answers occasionaly. The answer are always right but once in awhile there will be an extra 3 digits on the end of the answer (t...
by dinokilla
Tue Jan 08, 2008 11:41 pm
Forum: Freebasic Questions & Answers
Topic: Is FB QB in disguise?
Replies: 54
Views: 82780

Thanks for the info Jeff, the more info the better. :D FB seems pretty straight forward so far. I've been doing more experimenting than reading but as long as I can remember that I'm not programming in DOS I should be ok. I tried using the SCREEN function like old QB...oops. No seg/offset either lol...
by dinokilla
Tue Jan 08, 2008 10:33 pm
Forum: Freebasic Questions & Answers
Topic: Is FB QB in disguise?
Replies: 54
Views: 82780

FB might be close to C but it's not C. It's kinda like I wouldn't use a saw to pound in a nail and I wouldn't use a hammer to try and cut a piece of wood. In my opinion each language/compiler can be used for different things. C is great for alot of things but when I decided to go back to making some...
by dinokilla
Tue Jan 08, 2008 11:51 am
Forum: Freebasic Questions & Answers
Topic: Is FB QB in disguise?
Replies: 54
Views: 82780

Thanks for the info, I can't remember being this excited about a new compiler since I first began programming! I will check out some of those IDE's, although I'm getting along pretty well without one so far. Thanks for all the help! I'll be back eventually with a problem I'm sure. :D
by dinokilla
Tue Jan 08, 2008 12:32 am
Forum: Freebasic Questions & Answers
Topic: Is FB QB in disguise?
Replies: 54
Views: 82780

wow I was expecting a slightly updated dos compiler but wow...32bit integers and pointers, it's working it's way toward C, I can see why QB purists might not like it... Alot more up to date than I ever expected though! Is there an IDE that anyone would recommend? I don't NEED one but...if there is a...
by dinokilla
Mon Jan 07, 2008 9:13 pm
Forum: Freebasic Questions & Answers
Topic: Is FB QB in disguise?
Replies: 54
Views: 82780

Wow that sounds good, Does it have documentation with it explaining the differences with qbasic? I wouldn't be using the DRAW function but definately blitting and general sprite stuff. I've always known QB was slow but I'm not trying to make money or anything I just like programming for the fun of i...
by dinokilla
Mon Jan 07, 2008 7:21 pm
Forum: Freebasic Questions & Answers
Topic: Is FB QB in disguise?
Replies: 54
Views: 82780

Is FB QB in disguise?

Can I compile QB code in FB or is it alot different? I used to program in QB awhile back and lately I've been programming in C++. I decided I just want to make some simple 2d side scrollers and rpgs now so...I know QB is very good for that, is FB the same? Or better???