Search found 46 matches

by Joel
Mon Oct 09, 2017 10:13 pm
Forum: Libraries
Topic: counting the days since 1600/1/1
Replies: 14
Views: 1413
Flag: Germany

Re: counting the days since 1600/1/1

Hi George thanks for sticking to the subject. Well, FLOOR doesn't actually round up. It rounds down. It eliminates all decimal places of any rational number and is used to implement DIV, the "complementary" to MOD in SB. By using DIV it is possible to actually count something, whereas MOD would just...
by Joel
Sat Oct 07, 2017 3:14 pm
Forum: Libraries
Topic: counting the days since 1600/1/1
Replies: 14
Views: 1413
Flag: Germany

Re: counting the days since 1600/1/1

Hello, George, Thank you for your suggestions. I understand your approach. You use the MOD function to check if your year is a leap year or not. With this problem you can use the MOD function very usefully. The problem for me, however, is to calculate the sum of all leap years between 1600 and my ye...
by Joel
Tue Oct 03, 2017 5:27 pm
Forum: Libraries
Topic: counting the days since 1600/1/1
Replies: 14
Views: 1413
Flag: Germany

Re: counting the days since 1600/1/1

Yes, I think that's precisely what it is.;-)
by Joel
Tue Oct 03, 2017 12:58 pm
Forum: Libraries
Topic: counting the days since 1600/1/1
Replies: 14
Views: 1413
Flag: Germany

Re: counting the days since 1600/1/1

Hello Dutchman, thank you very much for your advice! For me, it's just a matter of definition. The calendar of my program begins on first of January 1600 (that's just to make it easier to calculate the leap years). Thus January 1st of 1600 is the first day(=1), January 2nd the second day(=2), and so...
by Joel
Mon Oct 02, 2017 9:50 pm
Forum: Libraries
Topic: counting the days since 1600/1/1
Replies: 14
Views: 1413
Flag: Germany

Re: counting the days since 1600/1/1

wow, thats great!! didn't know that...that would have saved me the waste of an afternoon. thank you very much... I'll take a closer look at it right away. I am, by the way, glad that the results are identical. In my case, the days from 1.1.1600 are counted, while in your case the difference days are...
by Joel
Mon Oct 02, 2017 8:18 pm
Forum: Libraries
Topic: counting the days since 1600/1/1
Replies: 14
Views: 1413
Flag: Germany

counting the days since 1600/1/1

Hi there, For date calculations I needed a program to calculate the number of days since 1/1/1600. This program can also be used to calculate the difference between two dates, for example. INPUT year, month,day PRINT days_1600(year,month,day) 'calculates the number of days since 1600/1/1 'c' DEF day...
by Joel
Thu Aug 03, 2017 1:28 pm
Forum: Libraries
Topic: input-pad
Replies: 3
Views: 622
Flag: Germany

Re: input-pad

again modified. - keyboard-layout is passed as parameters to function - 'wait for touch' transferred into function /* COLOURS used in code 'c'-description 'y'-testing 'b'-defining 'g' customizing layout '' */ 'c'============================ '******************* '*** inputfield(keyboard_layout$,sepst...
by Joel
Mon Jul 31, 2017 3:16 pm
Forum: Libraries
Topic: input-pad
Replies: 3
Views: 622
Flag: Germany

Re: input-pad

Modified the thing. Now with caps-function and long keys /* COLOURS used in code 'c'-description 'y'-testing 'b'-defining 'g'-can be altered by user '' */ 'c'============================ '******************* '*** inputfield *** '******************* 'owns all variables 'creates array '===============...
by Joel
Thu Jul 27, 2017 8:48 pm
Forum: Libraries
Topic: input-pad
Replies: 3
Views: 622
Flag: Germany

input-pad

Hi everybody... needed an input-pad. Thought, it could be helpful for you as well... the keyboard-layout can be easily adapted. see DATA... the functions don't depend on any settings such as option base. bye, joel. /* COLOURS used in code 'c'-description 'y'-testing 'b'-defining '' */ 'c'===========...
by Joel
Thu Feb 23, 2017 10:20 am
Forum: BASIC programs
Topic: Fit font-size to screenwidth V2
Replies: 4
Views: 754
Flag: Germany

Re: Fit font-size to screenwidth

please be careful. this program changes your customized editor settings!!