Search found 452 matches
- Jul 07, 2013 17:55
- Forum: Beginners
- Topic: rnd, or a program problem? strange results[closed]
- Replies: 23
- Views: 2337
Re: rnd, or a program problem? strange results[closed]
(Thank you, dodicat. As I said in my second post, I understand my original problem.) Thank you - Hero TJF Thank you - site admin counting pine. This is the beginners board. In the FAQ - it tells me what BBCode is. It also says: " For more information on BBCode see the guide which can be accesse...
- Jul 07, 2013 6:14
- Forum: Beginners
- Topic: rnd, or a program problem? strange results[closed]
- Replies: 23
- Views: 2337
Re: rnd, or a program problem? strange results
ok - but I didn't format the first post - just copy, paste.
Not sure why it is different.
I have finished looking for instructions on using the BBC code, and see none.
A guide is supposed to be on the posting page, but I see none.
No problem: no more posts, fxm
Not sure why it is different.
I have finished looking for instructions on using the BBC code, and see none.
A guide is supposed to be on the posting page, but I see none.
No problem: no more posts, fxm
- Jul 06, 2013 12:21
- Forum: Beginners
- Topic: rnd, or a program problem? strange results[closed]
- Replies: 23
- Views: 2337
Re: rnd, or a program problem? strange results
MichealW: the breakdown into smaller intervals is a good test/display of distribution, but doesn't scale well with select case. And I'm old and might forget, so, again, I beat up the problem so I learn it well. ' test random distribution - did not fix for negatives dim shared as integer last = 10, f...
- Jul 06, 2013 12:05
- Forum: Beginners
- Topic: rnd, or a program problem? strange results[closed]
- Replies: 23
- Views: 2337
Re: rnd, or a program problem? strange results
Interesting discussion, but my real interest centered around using the first RND example of doubles to generate integers. Now I have learned the rounding rules in FB. ' display int rounding rules dim as single f print print "number int() fix() cint()" f = 1.2 print f, int(f), fix(f), cint(...
- Jul 04, 2013 7:03
- Forum: Beginners
- Topic: rnd, or a program problem? strange results[closed]
- Replies: 23
- Views: 2337
Re: rnd, or a program problem? strange results
I have my answer. RND does not hit 1, and rounding/converting is not what one expects. I do not see a (simple) way to use the double to integer conversion of the first/last routine. The distribution is correct with direct integer generation. Is there a way to get 'round up' behavior without writing ...
- Jul 04, 2013 6:04
- Forum: Beginners
- Topic: rnd, or a program problem? strange results[closed]
- Replies: 23
- Views: 2337
rnd, or a program problem? strange results[closed]
I run this, and I see strange results. I do not see what I am doing wrong. ' test random distribution dim as integer last, first, result dim as integer cycle dim as integer max, min dim as integer count, mxi, mni dim as double avg Function rnd_range (first As Double, last As Double) As Double ' from...
- Jul 03, 2013 18:19
- Forum: Beginners
- Topic: Parser/assembler problem? (closed)
- Replies: 18
- Views: 3144
Re: Parser/assembler problem?
Using .90 and the code that had the fault compiles clean.
I will mark this closed.
I will mark this closed.
- Jul 02, 2013 15:36
- Forum: Beginners
- Topic: new .90 install(musl)-Linux-graphics fail?[resolved]
- Replies: 2
- Views: 542
Re: new .90 install(musl) - Linux - graphics fail? [resolved
Thank you.
It was not clear from the docs that this version could not be considered 'complete'.
I will move to the regular install.
David
It was not clear from the docs that this version could not be considered 'complete'.
I will move to the regular install.
David
- Jul 02, 2013 4:34
- Forum: Beginners
- Topic: new .90 install(musl)-Linux-graphics fail?[resolved]
- Replies: 2
- Views: 542
new .90 install(musl)-Linux-graphics fail?[resolved]
program is: screen 20 cls print "Hi" sleep my install: david@rd1:/rdkl/FB/test$ fbc -version FreeBASIC Compiler - Version 0.90.0 (06-23-2013) for linux Copyright (C) 2004-2013 The FreeBASIC development team. standalone david@rd1:/rdkl/FB/test$ fbc s1.bas /rdkl/FB/FreeBASIC-0.90.0-linuxmusl...
- Jul 01, 2013 16:33
- Forum: Beginners
- Topic: Parser/assembler problem? (closed)
- Replies: 18
- Views: 3144
Re: Parser/assembler problem?
(I am embarrassed by my remark about not finding uninstall instructions. dkl gently showed me the answer. And then, of course, I am further embarrassed to now find the same info on the install page at FB.net.) I will move to .90 right away and see if it is still there and get back to this thread. If...
- Jun 30, 2013 17:55
- Forum: Beginners
- Topic: Parser/assembler problem? (closed)
- Replies: 18
- Views: 3144
Re: Parser/assembler problem?
I have a reply from dkl that he had observed the problem, and that it appears to be fixed in 0.90 I will mark this [solved] in a bit. David (I have not moved to 0.90. I can't reply to its success or not, yet. I use Linux only. Linux or not, I see no upgrade instructions anywhere in the forums or doc...
- Jun 16, 2013 8:28
- Forum: Beginners
- Topic: Parser/assembler problem? (closed)
- Replies: 18
- Views: 3144
Re: Parser/assembler problem?
For anyone interested: I quickly encountered the problem again in the single directory structure. I did send a zip with source and more to Daniel. I won't touch this source set until there is some clue why this happens. If someone else wants to peek at what I have - just send your email address - I ...
- Jun 15, 2013 23:05
- Forum: Beginners
- Topic: Parser/assembler problem? (closed)
- Replies: 18
- Views: 3144
Re: Parser/assembler problem?
Sent.
Thanks, Daniel
dnb
Thanks, Daniel
dnb
- Jun 15, 2013 20:33
- Forum: Beginners
- Topic: Parser/assembler problem? (closed)
- Replies: 18
- Views: 3144
Re: Parser/assembler problem?
Thank you for at least veiwing my question and applying a little thought to my problem. I hope this post is not too long. The fails did not seem to be random. Typically, a blank line added after an 'end if' would clear the problem. I've been watching this for a few months. No blank line: fail. Add b...
- Jun 15, 2013 8:41
- Forum: Beginners
- Topic: Parser/assembler problem? (closed)
- Replies: 18
- Views: 3144
Parser/assembler problem? (closed)
Linux only - 0.24 version. About 1200 lines of source code in 4 files - one .bas and 3 .bi I use no pointers, include no extra libraries - not even any crt routines in this group of programs. No huge arrays. No inline code. No fancy graphics. (The current task: many small boxes on one screen to disp...