Sometimes the simplest problems are harder than they first seem. A client once specified a requirement to me: we'll give you the VAT-inclusive (20%) price; you need to generate invoices showing the net and VAT amounts. Sounds easy, right? net = round(tot*5/6) vat = round(tot/6)
It's an arithmetic problem too, though... Imagine every whole value from 1 to 100, and add 20% to each. You now have 100 different numbers in the range 1-120. 20 numbers in that interval don't occur. Pick one. What whole number, when you add 20% to it, produces your number? None!
-
-
That's true - the problem is actually exacerbated mathematically because operations aren't over Z or R, but over some arbitrary degree of fixed-point precision. (It's arbitrary because currency-exchange rates, unit-pricing and all that). And that's where the difficulty creeps in!
-
I think I'm beginning to imagine the amount of work you must have put in at
@MYOB... - Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.