10-18-2016, 06:08 PM
(10-18-2016, 05:30 PM)Unknown98 Wrote: 3. If I understand your question correctly... yes, I think so. Not sure exactly what you mean by floating point numbers.
...
There will bulk discounts introduced but I have not implemented the actual payment function yet. Any ideas as to what the discount should be in relation to number ordered?
By floating point numbers he means that when decimals are converted to binary and back issues tend to be caused. That's the...overly simplified explanation. You can get around that by converting days into hundredths (ie instead of 1.55 days have 155 hundredths), eliminating the need for the programming to deal with decimals. Someone else can probably explain this much better.
Regarding discounts, Airbus and Boeing have been known to give discounts of around 50% (or even more) on uberlarge orders of planes (by which I mean 100+), this would be hard to implement. Perhaps cap the discount at 40%, with that rate being applied when 50 aircraft are ordered at the same time, with 0% discount being applied when one aircraft is ordered, and then have the discount scale accordingly? The percentage cap and the number of aircraft it is applied at are just estimates.
