From: Joost Diepenmaat Date: 2008-08-05T09:58:40+09:00 Subject: Re: [BUG?] Strange behavior in Integer Todd Benson writes: > On Mon, Aug 4, 2008 at 5:02 PM, Sebastian Hungerecker > wrote: >> Joe Davison wrote: >>>> "%.30f" % (33.80 * 100) >> => "3379.999999999999545252649113535881" >> >> Seems like one to me. >> >> HTH, >> Sebastian > > Just playing around a little (no exhaustive testing), but it seems > like this only happens with a number string matching > /\A3[2-9]\.[38]0*\Z/ (for nubies, a number that is in the closed > interval 32 to 40 with a following 3 or 8 in the decimal place and > nothing after it except for zero or more zeros). Weird. There might > be other cases. http://docs.sun.com/source/806-3568/ncg_goldberg.html -- Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/