Saturday, February 9, 2008

.2d + .1d != .3d

.2 + .1 = .3, right? Wrong! Not in the computer world. If you are looking for a way to represent a quantity like Money, follow this Martin Fowler design:

http://martinfowler.com/ap2/quantity.html

No comments: