Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New to the CF scene
    Join Date
    Sep 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Postage Calculator returns too many results

    Hi

    I've attached my source code in its HTML page as a text file. Sorry I couldn't choose which part to quote here.

    My Goal:
    I needed an easy way to calculate which stamps to use for various postage values.


    So I searched for a javascript that was doing the same thing and tweaked it (changing the values of the stamps and increasing the number of stamp denominations from 5 to 7). It works really well with no errors.

    Unfortunately, because I've added denominations (now 7), the number of posssible combinations has increased dramatically for higher postage values. Of course, most of the possible combinations are impractical and therefore redundant (e.g. requiring 38 penny stamps) and by the time you get to 2.92 for the postage value the result never arrives (presumeably because it will take a while to calculate?).

    Can you suggest a way to limit the results to practical combinations and prevent large postage values from producing all possible combinations?

    Thanks,
    Kevin
    Attached Files Attached Files


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •