Search found 3045 matches

by MrSwiss
Jun 26, 2019 18:38
Forum: General
Topic: suker lump desolve sim try
Replies: 5
Views: 116

Re: suker lump desolve sim try

badidea wrote:That is not sugar, that is Swiss cheese.

Nope, never seen white 'original' swiss cheese (only in the USA possible). ;-)

Btw.: 'swiss cheese' is a term only in USA used, because cheese in Switzerland
usually has a name (most often related to: where its been made, location)
by MrSwiss
Jun 26, 2019 17:39
Forum: General
Topic: suker lump desolve sim try
Replies: 5
Views: 116

Re: suker lump desolve sim try

Read comments in code ... Recoded from scratch (faster than correcting): ' dissolve a piece of sugar #Define i_rng(l, h) ( Int(Rnd() * (((h) + 1) - (l)) + (l)) ) ' color constants Const As ULong black = &hFF000000, white = &hFFFFFFFF Screen 18, 32 Color(white, black) : Cls ' instead of paint...
by MrSwiss
Jun 26, 2019 12:57
Forum: Beginners
Topic: ByRef, ByVal, Sub, & Function
Replies: 4
Views: 139

Re: ByRef, ByVal, Sub, & Function

What is the simple and easiest explanation about ByRef & ByVal in FreeBASIC. ByVal : the procedure (Sub/Function) gets a copy of the original variable. (original remains "as-is", unchanged even if modified inside procedure!) ByRef : the procedure (Sub/Function) references the original...
by MrSwiss
Jun 21, 2019 16:51
Forum: Community Discussion
Topic: fb 1.07 tests
Replies: 12
Views: 537

Re: fb 1.07 tests

Since the above mentioned changes, have been committed to "master", we can
safely expect, that this won't change quickly, again. (Targets mentioned: DOS/WIN)
I suppose it is only relevant to the "standalone" builds ...
by MrSwiss
Jun 20, 2019 23:57
Forum: Community Discussion
Topic: fb 1.07 tests
Replies: 12
Views: 537

Re: fb 1.07 tests

+- github #141: introduced '-strip'/'-nostrip' options to control symbol stripping of output files (William Breathitt Gray) +- github #141: fbc will default to stripping symbols if '-d ENABLE_STRIPALL' is passed in FBCFLAGS (William Breathitt Gray) +- github #141: makefile option 'ENABLE_STRIPALL=1...
by MrSwiss
Jun 19, 2019 21:40
Forum: General
Topic: Bit strings ? ( "Bit string datatype" )
Replies: 7
Views: 251

Re: Bit strings ? ( "Bit string datatype" )

Seems to me, that what you are looking for, is probably best described as "BitField".

The manipulators (in code) whould therefore be: BitSet()/BitReSet() ...

E.g. in a UShort you can store 16 different (Boolean) instances. ULong = 32 e.t.c..
(remark: a 1 means TRUE, a 0 means FALSE)
by MrSwiss
Jun 19, 2019 14:21
Forum: General
Topic: Bit strings ? ( "Bit string datatype" )
Replies: 7
Views: 251

Re: Bit strings ?

I would like to spare significant amount of memory and rapidly increase the speed of computations. You won't achieve any one of the two because: 1) String uses more memory, than binary numbers (int/float). 2) String calculations must be coded by yourself entirely. This then means: hardly likely to ...
by MrSwiss
Jun 18, 2019 18:55
Forum: Linux
Topic: using long double in FB
Replies: 19
Views: 788

Re: using long double in FB

... but how do I determine whether Allocate or Callocate is appropriate ? Well, depends on use as well as personal preference. For allocating memory to e.g. ZString Ptr, I personally prefer CAllocate, because all allocated memory is zero'ed, which means I don't have to care at the string's end addi...
by MrSwiss
Jun 15, 2019 22:35
Forum: General
Topic: Squares
Replies: 6658
Views: 377025

Re: Squares

bye, bye alfred ...

Have you ever taken the pain, to read up on all topics, we've linked for you?

I very much daubt it, because your crappy answers come by far, too fast ...
by MrSwiss
Jun 15, 2019 22:17
Forum: General
Topic: Squares
Replies: 6658
Views: 377025

Re: Squares

You obviously have no clue about "hardness", which by the way, doesn't play any part in this sort of equation ... (what is more releveant is the " density " of the material). It whould probably be better for you, to go back to write: music/lyrics because, physics is certainly not...
by MrSwiss
Jun 15, 2019 22:06
Forum: General
Topic: Squares
Replies: 6658
Views: 377025

Re: Squares

Then you mul that by the 4.68 hardness of the wineglass ... Who told you that this is connected, by a simple multiplication? (This is usually the point, where you loose it all, by such sensless assumptions/guesses!) If you want to shutter the glass, it depends very well on Frequency ... (every mate...
by MrSwiss
Jun 15, 2019 21:02
Forum: General
Topic: Squares
Replies: 6658
Views: 377025

Re: Squares

No, you won't this way, because you are again, mixing up things, that have basically
nothing in common (pressure of Air, then Glass filled partly with Water, which Btw.
reacts to a certain Frequency at a specified minimal Sound-Pressure).
by MrSwiss
Jun 15, 2019 20:25
Forum: General
Topic: Squares
Replies: 6658
Views: 377025

Re: Squares

The only relevant and also measurable value of sound is Sound-/Accoustic- Pressure . Since it is "pressure" the unit of measurement, is Pascal/ * Hecto-Pascal/Kilo-Pascal. A Hecto-Pascal is equivalent to 1 Milli-Bar (1000 hPa = 1 Bar). * Hecto-Pascal, aka: hPa is mainly used, to describe A...
by MrSwiss
Jun 15, 2019 12:16
Forum: General
Topic: Squares
Replies: 6658
Views: 377025

Re: Squares

What about InvSquare (as in: "inverted square")?

Code: Select all

' for more efficiency:
function InvSquare(Byval a as single) as single
    return sgn(a) * a * a
end function
by MrSwiss
Jun 14, 2019 22:35
Forum: General
Topic: Squares
Replies: 6658
Views: 377025

Re: Squares

@albert,

you might as well stop, to pollute this forum/thread, with your hallucinations.

Whatever you are smoking/throwing/sniffing must be very bad stuff ... I'd stop that, too.
(Whould be better for your health also.)

Go to advanced search