Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
09-04-2007, 08:53 PM #1
- Join Date
- Sep 2007
- Thanked 0 Times in 0 Posts
Postage Calculator returns too many results
I've attached my source code in its HTML page as a text file. Sorry I couldn't choose which part to quote here.
I needed an easy way to calculate which stamps to use for various postage values.
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?