Posts: 52
Threads: 9
Joined: Sep 2022
Reputation:
0
Thanks for the hints. After looking at the formulas, I came to the conclusion that the calculations are basically on whole numbers. "Bplus" are not Easter formulas. It is recommended that the calculations are as precise as possible, because the results may be distorted. Someone told me (except Forum) that at least 32-bit precision must be used. I don't really understand what the 32-bit presidency means.
Regards Chris
Posts: 4,698
Threads: 222
Joined: Apr 2022
Reputation:
322
11-23-2022, 04:30 PM
(This post was last modified: 11-23-2022, 04:33 PM by bplus.)
(11-23-2022, 04:22 PM)Chris Wrote: Thanks for the hints. After looking at the formulas, I came to the conclusion that the calculations are basically on whole numbers. "Bplus" are not Easter formulas. It is recommended that the calculations are as precise as possible, because the results may be distorted. Someone told me (except Forum) that at least 32-bit precision must be used. I don't really understand what the 32-bit presidency means.
Regards Chris
Ah it is Integers! sorry I was having a little fun about Easter calculations.
You could then try at start
Code: (Select All)
_DEFINE A-Z AS _INTEGER64
leave off # or ## signs unless you know for sure they are supposed to be Doubles or _Floats (decimal point numbers).
You would have 64 bit Integer range which should be better than 32 bit, even more if knew all were positive even in sub calculations but probably not likely
Code: (Select All)
_DEFINE A-Z AS _UNSIGNED _INTEGER64
But your block of code is missing many variable values, not testable even if we knew what an answer looked like. We have to know the meaning of variables to assign the correct type.
724 855 599 923 575 468 400 206 147 564 878 823 652 556 bxor cross forever
Posts: 52
Threads: 9
Joined: Sep 2022
Reputation:
0
q and r -> is an integer. So v1 is also an integer.
Posts: 956
Threads: 52
Joined: May 2022
Reputation:
38
11-23-2022, 07:45 PM
(This post was last modified: 11-23-2022, 07:46 PM by Kernelpanic.)
I find the whole thing pretty silly now. Are this about the launch datas of a rocket on a secret mission: "Oops, where did that come from?". The CIA laughs and the recipient is amazed!
q and r -> is an integer. So v1 is also an integer. -> Worthless!
Seriously, without any indication of the meaning of it all, without concrete data and what is expected as a result, nothing can be meaningfully tested.
Posts: 52
Threads: 9
Joined: Sep 2022
Reputation:
0
Thank You very much. In fact, adding && helped a lot. Subject solved. I would like to thank all participants of the discussion for their help. "I am curious what your program is all about, please share it".
Part of the Hebrew calendar code.
Regards - Chris
Posts: 52
Threads: 9
Joined: Sep 2022
Reputation:
0
It has a lot to do with astronomy, a lot. Read how the calendar works.
Regards - Chris