Saturday, April 12, 2008

Rounding Error

Bought something on sale at Whole Foods last night: buy one get one free! The price of a single item? $4.99. When I checked my receipt, I noticed that I was charged $5.00 instead.

Huh?

Well, it looks like their system doesn't quite understand the concept of "buy one get one free". Instead, it sees two for $4.99. And when it tries to do the math, each item costs $2.50 ($4.99 / 2), so 2 items ends up costing $5.00.

Go programmers! Or not.

No comments: