Search found 9587 matches

by fxm
Jul 02, 2020 16:31
Forum: General
Topic: Multiple Error Traps In A Single Program
Replies: 1
Views: 26

Re: Multiple Error Traps In A Single Program

Indeed it is not a good example because the division by 0 can not be trapped by the FreeBASIC error handling.
Otherwise, you can refer to Error Handling in the Programmer's Guide.
by fxm
Jul 02, 2020 16:07
Forum: Beginners
Topic: print using questions
Replies: 3
Views: 67

Re: print using questions

The exponent-part consists of from three to five ^ that must immediately follow the decimal-part: ^^^ for the exponent part on one digit (after the sign): E+/-# ^^^^ for the exponent part on two digits (after the sign): E+/-## ^^^^^ for the exponent part on three digits (after the sign): E+/-### I c...
by fxm
Jul 02, 2020 11:36
Forum: Community Discussion
Topic: Getting old
Replies: 14
Views: 228

Re: Getting old

dodicat wrote:300 km on foot up and down mountains, I would not call holiday mode

This quickly accumulates:
10 km per afternoon (approximately 3 hours of walking in uneven terrain) * 6 days a week (Sunday rest) * 6 weeks = 360 km.

I lived 4 years in Le Havre in the 70s!
by fxm
Jul 02, 2020 8:24
Forum: Community Discussion
Topic: Getting old
Replies: 14
Views: 228

Re: Getting old

I am 69 years old and I do not feel at all old. It is true that I am lucky to be in good health and good physical condition. Next weekend, I'm going on vacation as usual in the mountains where I hike a little each afternoon, so that out of the total vacation I have covered more than 300 km on foot, ...
by fxm
Jul 01, 2020 17:26
Forum: Community Discussion
Topic: Windows 10 May 2020 Update
Replies: 16
Views: 329

Re: Windows 10 May 2020 Update

Since Windows version 1809, do not install the next version immediately does not prevent to continue to apply the updates of the previous version, and this for many months (about 9 months) before Windows Update alerts on the need to install the new version.
by fxm
Jul 01, 2020 15:39
Forum: Community Discussion
Topic: Windows 10 May 2020 Update
Replies: 16
Views: 329

Re: Windows 10 May 2020 Update

Extract from https://blogs.windows.com/windowsexperience/2020/05/27/how-to-get-the-windows-10-may-2020-update/: ..... Beginning today, the May 2020 Update is available for customers who would like to install this latest release. If you are ready to install the update, open your Windows Update settin...
by fxm
Jul 01, 2020 14:56
Forum: Community Discussion
Topic: Windows 10 May 2020 Update
Replies: 16
Views: 329

Re: Windows 10 May 2020 Update

I see for a few days that this 2004 version is offered to me optionally in the Windows Update menu, but as usual for new versions, I wait a few months for stabilization before applying it (probably this autumn).
by fxm
Jun 29, 2020 20:41
Forum: General
Topic: How would you find the shortest distance in a set of points?
Replies: 23
Views: 408

Re: How would you find the shortest distance in a set of points?

I'm talking about this line of code: if f=0 then total+=sqr(L) else total+=L in the function 'distance(points() As pt,f as long=0) As double' . He then compares (in https://www.freebasic.net/forum/viewtopic.php?p=273613#p273613) the results ( 'total' ) obtaine...
by fxm
Jun 29, 2020 19:55
Forum: General
Topic: How would you find the shortest distance in a set of points?
Replies: 23
Views: 408

Re: How would you find the shortest distance in a set of points?

@dodicat, Let SUMi(Yi) = Y1 + Y2 + Y3 + ..... We can not compare: SUMi(Xi^2) = X1^2 + X2^2 + ..... with: SUMi(SQR(Xi^2)) = SQR(X1^2) + SQR(X2^2) + ..... because the SQR function induces a non-linearity in the sum. Examples (with a sum of 2 terms) wher...
by fxm
Jun 29, 2020 18:10
Forum: General
Topic: How would you find the shortest distance in a set of points?
Replies: 23
Views: 408

Re: How would you find the shortest distance in a set of points?

@dodicat, We can not compare: SUMi(Xi^2) with: SUMi(SQR(Xi^2)) because the SQR function induces a non-linearity in the sum. Examples where that fails: X1 = 1, X2 = 6 SUMi(Xi^2) = 37 SUMi(SQR(Xi^2)) = 7 X1 = 3, X2 = 5 SUMi(Xi^2) = 34 SUMi(SQ...
by fxm
Jun 28, 2020 16:22
Forum: Beginners
Topic: help using fbsound-1.1 for playing multiple wav files
Replies: 8
Views: 159

Re: help using fbsound-1.1 for playing multiple wav files

It could be better to also try with:
DIM SHARED AS INTEGER hWave
by fxm
Jun 28, 2020 14:58
Forum: Beginners
Topic: help using fbsound-1.1 for playing multiple wav files
Replies: 8
Views: 159

Re: help using fbsound-1.1 for playing multiple wav files

Do you compile in 32-bit or 64-bit?
by fxm
Jun 27, 2020 19:47
Forum: Documentation
Topic: KeyPgPrintPp correction
Replies: 1
Views: 80

Re: KeyPgPrintPp correction

Thank you.
Done.
by fxm
Jun 27, 2020 5:13
Forum: Projects
Topic: Old school text adventure as a way of re-learning coding
Replies: 24
Views: 648

Re: Old school text adventure as a way of re-learning coding

@Admin,
can you remove this duplicate (with viewtopic.php?f=8&t=28659) ?

Go to advanced search