Re: Total Combinations Matching a Set Sum



Thanks for the Reply Einer,

Einar Andreas Rødland wrote:
> It seems to me the line
> For I = minval To (Target + 5) / 6 - 3
> does this in integer arithmetic and that getting the correct solution
> depends critically on how the language interprets this when the upper
> bound does not give an integer value.

I Ran the Program Using the Figures After the Divide Sign as 3 for I, 3
for J, 2 for K, 2 for L & 1 for M and got Garbbage. You were Quite
Right in your Theory that it Must be Something to do with Integer
Arithmetic. Not Being Up on this Sort of thing, I will just have to
Accept it Works for Whatever Reason.

Thanks Again for your Help.
All the Best.
Paul

.



Relevant Pages

  • Re: tm_gmtoff
    ... I am using Paul Semdley's build evnironment and my time.h ... This looks like the correct solution. ...
    (comp.os.os2.programmer.porting)
  • Re: with Q.
    ... > is this impossible work? ... > i want to know a correct solution in this case. ... > thank you very much for your advice. ... Prev by Date: ...
    (sci.math)
  • with Q.
    ... is this impossible work? ... i want to know a correct solution in this case. ... thank you very much for your advice. ... Prev by Date: ...
    (sci.math)
  • Re: Text Field Control Source with equal signs
    ... > Putting the expression in the query is the correct solution. ... Thanks John! ... Prev by Date: ...
    (microsoft.public.access.gettingstarted)
  • Re: Barcode printing error
    ... That was the correct solution. ... > codes" box | OK. ... > Hank wrote: ... Prev by Date: ...
    (microsoft.public.word.application.errors)