From: "trans. (T. Onoma)" Date: 2004-10-29T03:25:11+09:00 Subject: Re: Rounding error, (100.0 * 9.95).to_i == 994 On Thursday 28 October 2004 12:52 pm, Charles Mills wrote: | On Oct 28, 2004, at 9:12 AM, trans. (T. Onoma) wrote: | > How 'bout a good Money class ? | | IMHO a good Money class would be priceless :) | There was an interesting article in Dr. Dobbs about a java money class | a while back. Below is the extract (registration required for full | article). | Anyway if you do a lot of monetary calculations using floating point | you can get some pretty hefty round off error... as you guys have been | discussing. | | -Charlie | | www.ddj.com/documents/ddj0405i/ Alas, I don't have that class of Money to subscribe :( ;) T.